i18n: translate frontend UI strings to English

This commit is contained in:
zhi
2026-03-11 21:19:54 +00:00
parent 34ab80e50d
commit 0ab1d2f380
14 changed files with 147 additions and 147 deletions

View File

@@ -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 && (
<div className="sidebar-footer">
<span>👤 {user.username}</span>
<button onClick={onLogout}>退</button>
<button onClick={onLogout}>Logout</button>
</div>
)}
</nav>