🌐 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:
LobeHub Bot
2026-02-01 17:40:45 +08:00
committed by GitHub
parent f5d67a7385
commit 5db07efe6b
5 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ export const useFetchAgentList = () => {
const { isValidating, data } = useFetchAgentListHook(isLogin);
// isRevalidating: 有缓存数据,后台正在更新
// isRevalidating: has cached data, updating in background
return {
isRevalidating: isValidating && !!data,
};

View File

@@ -49,7 +49,7 @@ export const useClearCurrentMessagesHotkey = () => {
});
};
// 注册聚合
// Register aggregate
export const useRegisterChatHotkeys = () => {
const { enableScope, disableScope } = useHotkeysContext();

View File

@@ -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();

View File

@@ -19,7 +19,7 @@ export const useToggleImageRightPanelHotkey = () => {
);
};
// 注册聚合
// Register aggregate
export const useRegisterImageHotkeys = () => {
const { enableScope, disableScope } = useHotkeysContext();

View File

@@ -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;