mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🌐 chore: translate non-English comments to English in src/hooks (#12028)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ export const useFetchAgentList = () => {
|
||||
|
||||
const { isValidating, data } = useFetchAgentListHook(isLogin);
|
||||
|
||||
// isRevalidating: 有缓存数据,后台正在更新
|
||||
// isRevalidating: has cached data, updating in background
|
||||
return {
|
||||
isRevalidating: isValidating && !!data,
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ export const useClearCurrentMessagesHotkey = () => {
|
||||
});
|
||||
};
|
||||
|
||||
// 注册聚合
|
||||
// Register aggregate
|
||||
|
||||
export const useRegisterChatHotkeys = () => {
|
||||
const { enableScope, disableScope } = useHotkeysContext();
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useGlobalStore } from '@/store/global';
|
||||
|
||||
import { useHotkeyById } from './useHotkeyById';
|
||||
|
||||
// 切换到会话标签(并聚焦到Lobe AI)
|
||||
// Switch to chat tab (and focus on Lobe AI)
|
||||
export const useNavigateToChatHotkey = () => {
|
||||
const navigateToAgent = useNavigateToAgent();
|
||||
const [, { unpinAgent }] = usePinnedAgentState();
|
||||
@@ -58,7 +58,7 @@ export const useCommandPaletteHotkey = () => {
|
||||
};
|
||||
|
||||
export const useRegisterGlobalHotkeys = () => {
|
||||
// 全局自动注册不需要 enableScope
|
||||
// Global auto-registration doesn't need enableScope
|
||||
useToggleLeftPanelHotkey();
|
||||
useToggleRightPanelHotkey();
|
||||
useNavigateToChatHotkey();
|
||||
|
||||
@@ -19,7 +19,7 @@ export const useToggleImageRightPanelHotkey = () => {
|
||||
);
|
||||
};
|
||||
|
||||
// 注册聚合
|
||||
// Register aggregate
|
||||
|
||||
export const useRegisterImageHotkeys = () => {
|
||||
const { enableScope, disableScope } = useHotkeysContext();
|
||||
|
||||
@@ -19,7 +19,7 @@ export const usePWAInstall = () => {
|
||||
}, []);
|
||||
|
||||
const installCheck = () => {
|
||||
// 当在 PWA 或不支持 PWA 的环境中时,不显示安装按钮
|
||||
// Don't show install button when in PWA or environment that doesn't support PWA
|
||||
if (isPWA || !isSupportInstallPWA) return false;
|
||||
const pwa: any = document.querySelector(`#${PWA_INSTALL_ID}`);
|
||||
if (!pwa) return false;
|
||||
|
||||
Reference in New Issue
Block a user