From 0ab1d2f380a2f9c2ef0d9164602d6fe716d3f485 Mon Sep 17 00:00:00 2001 From: zhi Date: Wed, 11 Mar 2026 21:19:54 +0000 Subject: [PATCH] i18n: translate frontend UI strings to English --- src/App.tsx | 4 +- src/components/Sidebar.tsx | 10 ++-- src/pages/CreateIssuePage.tsx | 16 +++--- src/pages/DashboardPage.tsx | 12 ++--- src/pages/IssueDetailPage.tsx | 26 +++++----- src/pages/IssuesPage.tsx | 10 ++-- src/pages/LoginPage.tsx | 10 ++-- src/pages/MilestoneDetailPage.tsx | 16 +++--- src/pages/MilestonesPage.tsx | 20 ++++---- src/pages/MonitorPage.tsx | 32 ++++++------ src/pages/NotificationsPage.tsx | 8 +-- src/pages/ProjectDetailPage.tsx | 32 ++++++------ src/pages/ProjectsPage.tsx | 16 +++--- src/pages/SetupWizardPage.tsx | 82 +++++++++++++++---------------- 14 files changed, 147 insertions(+), 147 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b69bc05..94ef3f5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,14 +50,14 @@ export default function App() { } if (appState === 'checking') { - return
检查配置状态...
+ return
Checking configuration status...
} if (appState === 'setup') { return } - if (loading) return
加载中...
+ if (loading) return
Loading...
if (!user) { return ( diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 5237e4f..8906839 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -29,11 +29,11 @@ export default function Sidebar({ user, onLogout }: Props) { }, [user]) const links = user ? [ - { to: '/', icon: '📊', label: '仪表盘' }, + { to: '/', icon: '📊', label: 'Dashboard' }, { to: '/issues', icon: '📋', label: 'Issues' }, - { to: '/projects', icon: '📁', label: '项目' }, - { to: '/milestones', icon: '🏁', label: '里程碑' }, - { to: '/notifications', icon: '🔔', label: '通知' + (unreadCount > 0 ? ' (' + unreadCount + ')' : '') }, + { to: '/projects', icon: '📁', label: 'Projects' }, + { to: '/milestones', icon: '🏁', label: 'Milestones' }, + { to: '/notifications', icon: '🔔', label: 'Notifications' + (unreadCount > 0 ? ' (' + unreadCount + ')' : '') }, { to: '/monitor', icon: '📡', label: 'Monitor' }, ] : [ { to: '/monitor', icon: '📡', label: 'Monitor' }, @@ -54,7 +54,7 @@ export default function Sidebar({ user, onLogout }: Props) { {user && (
👤 {user.username} - +
)} diff --git a/src/pages/CreateIssuePage.tsx b/src/pages/CreateIssuePage.tsx index 86a175d..4f0cc0f 100644 --- a/src/pages/CreateIssuePage.tsx +++ b/src/pages/CreateIssuePage.tsx @@ -27,16 +27,16 @@ export default function CreateIssuePage() { return (
-

新建 Issue

+

Create Issue

- -