feat(i18n): U3 国际化 — react-i18next 双语框架 + 侧边栏/Header/Login 全量翻译 + 语言切换器

- 安装 i18next + react-i18next,创建 src/i18n/ 配置实例
- 创建 zh-CN.json (120+ 键) + en-US.json 全量英文翻译
- 侧边栏 42+ 菜单项全量 labelKey 国际化
- Header 通知/主题/用户菜单全量翻译
- Login 页面表单/按钮/主题+语言切换器
- zustand useLanguageStore 持久化语言选择
- HTML lang 属性自动同步
- tsc -b=0, npm build=✅, 17/17 测试通过
This commit is contained in:
attacker committed 2026-06-27 16:54:07 +08:00
1 parent 084a3be2cf
commit 2e179ef7f4
15 files changed
+860 -112

No files matched your search

+198
View File
@@ -0,0 +1,198 @@
{
"common": {
"appName": "AIOps Platform",
"confirm": "Confirm",
"cancel": "Cancel",
"save": "Save",
"delete": "Delete",
"edit": "Edit",
"add": "Add",
"create": "Create",
"update": "Update",
"search": "Search",
"refresh": "Refresh",
"loading": "Loading...",
"success": "Success",
"failed": "Failed",
"error": "Error",
"warning": "Warning",
"info": "Info",
"close": "Close",
"back": "Back",
"next": "Next",
"previous": "Previous",
"submit": "Submit",
"reset": "Reset",
"export": "Export",
"import": "Import",
"download": "Download",
"upload": "Upload",
"copy": "Copy",
"copied": "Copied",
"test": "Test",
"enable": "Enable",
"disable": "Disable",
"all": "All",
"none": "None",
"yes": "Yes",
"no": "No",
"actions": "Actions",
"status": "Status",
"name": "Name",
"description": "Description",
"type": "Type",
"createdAt": "Created At",
"updatedAt": "Updated At",
"noData": "No Data",
"total": "Total",
"detail": "Detail",
"more": "More",
"filter": "Filter",
"clear": "Clear",
"apply": "Apply",
"approve": "Approve",
"reject": "Reject",
"pending": "Pending",
"approved": "Approved",
"rejected": "Rejected",
"online": "Online",
"offline": "Offline",
"running": "Running",
"stopped": "Stopped",
"maintenance": "Maintenance",
"unknown": "Unknown",
"active": "Active",
"inactive": "Inactive",
"required": "Required",
"optional": "Optional",
"confirmDelete": "Confirm delete? This action cannot be undone.",
"savedSuccessfully": "Saved successfully",
"deletedSuccessfully": "Deleted successfully",
"operationSuccess": "Operation succeeded",
"operationFailed": "Operation failed",
"loadFailed": "Failed to load",
"saveFailed": "Failed to save"
},
"menu": {
"dashboard": "Dashboard",
"assets": "Assets",
"servers": "Servers",
"cloudAccounts": "Cloud Accounts",
"domains": "Domains",
"regions": "Regions",
"platforms": "Cloud Platforms",
"cloudBilling": "Cloud Billing",
"kubernetes": "Kubernetes",
"clusterList": "Clusters",
"nodeManagement": "Nodes",
"workloads": "Workloads",
"deployments": "Deployments",
"statefulsets": "StatefulSets",
"daemonsets": "DaemonSets",
"cronjobs": "CronJobs",
"pods": "Pods",
"network": "Network",
"services": "Services",
"ingresses": "Ingresses",
"configCenter": "Configuration",
"configmaps": "ConfigMaps",
"secrets": "Secrets",
"storage": "Storage",
"events": "Events",
"topology": "Topology",
"deploy": "Deployment",
"pipelines": "Pipelines",
"deployConfig": "Deploy Config",
"deployRbac": "Deploy RBAC",
"monitor": "Monitoring",
"grafana": "Dashboards",
"resourceMonitor": "Resource Monitor",
"trace": "Tracing",
"alertCenter": "Alert Center",
"datasources": "Datasources",
"logCenter": "Log Center",
"lokiQuery": "Loki Query",
"esQuery": "ES Query",
"logLibrary": "Log Library",
"logAlerts": "Log Alerts",
"automation": "Automation",
"cronJobs": "Cron Jobs",
"scripts": "Scripts",
"remoteExec": "Remote Exec",
"aiops": "AIOps",
"aiAssistant": "AI Assistant",
"aiAlertAnalyzer": "Alert Analysis",
"aiPredictive": "Capacity Forecast",
"aiAgentCli": "Agent CLI",
"aiLlmConfig": "LLM Settings",
"approval": "Requests",
"approvalResource": "Resource Request",
"approvalApp": "App Request",
"approvalPermission": "Permission Request",
"audit": "Security Audit",
"auditTerminal": "Terminal Audit",
"auditOperations": "Operations Audit",
"auditLogin": "Login Logs",
"system": "System",
"users": "Users",
"roles": "Roles & Permissions",
"credentials": "Credentials",
"approvalWorkflow": "Approval Workflow",
"settings": "Settings"
},
"header": {
"expandSidebar": "Expand Sidebar",
"collapseSidebar": "Collapse Sidebar",
"theme": "Switch Theme",
"themeSwitch": "Theme",
"notifications": "Notifications",
"markAllRead": "Mark All Read",
"noNotifications": "No Notifications",
"viewAllNotifications": "View All Notifications",
"profile": "Profile",
"accountSettings": "Account Settings",
"logout": "Logout",
"language": "Language",
"languageSwitch": "Language",
"admin": "Administrator"
},
"login": {
"title": "AIOps Intelligent Operations Platform",
"subtitle": "Enterprise-grade intelligent operations management platform",
"username": "Username",
"password": "Password",
"usernamePlaceholder": "Enter username",
"passwordPlaceholder": "Enter password",
"loginButton": "Sign In",
"loggingIn": "Signing in...",
"loginFailed": "Login failed",
"usernameRequired": "Please enter username",
"passwordRequired": "Please enter password",
"rememberMe": "Remember me",
"welcome": "Welcome to",
"features": {
"k8s": "Kubernetes Full-Stack Management",
"monitor": "Comprehensive Monitoring & Alerting",
"aiops": "AI-Powered Operations",
"ci": "CI/CD Automated Pipelines"
}
},
"dashboard": {
"title": "Dashboard",
"serverStats": "Server Statistics",
"totalServers": "Total Servers",
"onlineServers": "Online Servers",
"k8sClusters": "K8s Clusters",
"runningPods": "Running Pods",
"todayAlerts": "Today's Alerts",
"recentAlerts": "Recent Alerts",
"recentPipelines": "Recent Pipelines",
"recentReleases": "Recent Releases",
"systemOverview": "System Overview",
"resourceUsage": "Resource Usage",
"cpuUsage": "CPU Usage",
"memoryUsage": "Memory Usage",
"diskUsage": "Disk Usage",
"quickActions": "Quick Actions"
}
}