Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🌐 chore: translate non-English comments to English in src/features/Electron (#12901)

LobeHub Bot4988413d5891
diff --git a/src/features/Electron/connection/RemoteStatus.tsx b/src/features/Electron/connection/RemoteStatus.tsx
index f315ae6abf3..17491f1ec6f 100644
--- a/src/features/Electron/connection/RemoteStatus.tsx
+++ b/src/features/Electron/connection/RemoteStatus.tsx
@@ -18,7 +18,7 @@ const RemoteStatus = memo<SyncProps>(({ onClick }) => {
s.useDataSyncConfig,
]);
- // 使用useSWR获取远程服务器配置
+ // Use useSWR to fetch the remote server configuration
useRemoteServerConfig();
return (
diff --git a/src/features/Electron/connection/Waiting.tsx b/src/features/Electron/connection/Waiting.tsx
index e99c844677a..b507215c947 100644
--- a/src/features/Electron/connection/Waiting.tsx
+++ b/src/features/Electron/connection/Waiting.tsx
@@ -109,7 +109,7 @@ const WaitingOAuth = memo<WaitingOAuthProps>(({ setWaiting, setIsOpen }) => {
setErrorMessage(error);
});
- // 错误状态
+ // Error state
if (errorMessage) {
return (
<div className={styles.container}>
@@ -134,7 +134,7 @@ const WaitingOAuth = memo<WaitingOAuthProps>(({ setWaiting, setIsOpen }) => {
);
}
- // 正常等待状态
+ // Normal waiting state
return (
<div className={styles.container}>
<div className={styles.content}>
diff --git a/src/features/Electron/connection/WaitingAnim.tsx b/src/features/Electron/connection/WaitingAnim.tsx
index 28b0a7f2343..4c7e45e1ae9 100644
--- a/src/features/Electron/connection/WaitingAnim.tsx
+++ b/src/features/Electron/connection/WaitingAnim.tsx
@@ -95,11 +95,11 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
const WaitingAnim = memo(() => {
return (
<div className={styles.container}>
- {/* 新增:星环 */}
+ {/* Added: star rings */}
<div className={cx(styles.ringBase, styles.ring1)} />
<div className={cx(styles.ringBase, styles.ring2)} />
<div className={cx(styles.ringBase, styles.ring3)} />
- {/* 脉冲 */}
+ {/* Pulses */}
<div className={cx(styles.pulseBase, styles.pulse1)} />
<div className={cx(styles.pulseBase, styles.pulse2)} />
<div className={cx(styles.pulseBase, styles.pulse3)} />
diff --git a/src/features/Electron/titlebar/TabBar/index.tsx b/src/features/Electron/titlebar/TabBar/index.tsx
index 0ae885c58a0..b7abb64c6dc 100644
--- a/src/features/Electron/titlebar/TabBar/index.tsx
+++ b/src/features/Electron/titlebar/TabBar/index.tsx
@@ -28,11 +28,11 @@ const TabBar = () => {
const handleActivate = useCallback(
(id: string, url: string) => {
- // 优先更新 Tab 激活状态(高优先级)
+ // Prioritize updating the Tab activation state (high priority)
activateTab(id);
const tab = tabs.find((t) => t.reference.id === id);
if (tab) pluginRegistry.onActivate(tab.reference);
- // 路由跳转降级为 startTransition(低优先级)
+ // Degrade route navigation to startTransition (low priority)
startTransition(() => navigate(url));
},
[activateTab, navigate, tabs],
diff --git a/src/features/Electron/updater/UpdateNotification.tsx b/src/features/Electron/updater/UpdateNotification.tsx
index ebb204fd705..26e3dbe741b 100644
--- a/src/features/Electron/updater/UpdateNotification.tsx
+++ b/src/features/Electron/updater/UpdateNotification.tsx
@@ -50,10 +50,10 @@ export const UpdateNotification: React.FC = () => {
useWatchBroadcast('updateWillInstallLater', () => {
setInstallConfirmMode('installLater');
- setTimeout(() => setInstallConfirmMode(null), 5000); // 5秒后自动隐藏提示
+ setTimeout(() => setInstallConfirmMode(null), 5000); // Auto-hide the notification after 5 seconds
});
- // 没有更新或正在下载时不显示任何内容
+ // Do not display anything when there's no update or it's currently downloading
if (!updateDownloaded && !updateAvailable) return null;
if (installConfirmMode === 'installLater') {