refactor(i18n): U36 全量 JSX 属性 + toast 硬编码中文清零 — 20 文件 30 处 → 0
清理 23 处 JSX 属性 (title/placeholder/label/description) + 7 处 toast 调用硬编码中文: - Deploy 模块 (AppRelease/DeployCredentials/PipelineManager/WorkspaceTermDialog/CredFormDialog/JobRoleCreateDialog/PipelineCreateDialog/AdvancedSettingsPanel) - Server 模块 (ServerForm) - System 模块 (LdapManagementSection/LiveMonitorDialog/SystemManager) - Audit 模块 (ActiveSessionsPanel/HistorySessionsPanel) - Monitor 模块 (AlertRulesTab/PrometheusDatasourceManager/SNMPMonitor) - AIOps 模块 (PredictiveCapacityTab) - Common/UI (TerminalLoadingOverlay/copy-button) 新增 25 翻译键 (common.connectingEllipsis/enteringWorkspace/connectingMonitor + deploy.* 11键 + server.jsonFormatPlaceholder + system.* 3键 + audit.* 2键 + monitor.* 3键 + aiops.aiAnalysisFailedToast + pipeline.subtitle) copy-button.tsx 从 import i18n → useTranslation() hook 3 组件新增 useTranslation hook (TerminalLoadingOverlay/WorkspaceTermDialog/LiveMonitorDialog/PredictiveCapacityTab) zh/en 7616→7640 +24 对齐, tsc -b=0, npm build✓ (17.25s), ESLint=0/43/0, go build=0, 17/17 测试通过
This commit is contained in:
1 parent
8d64936caf
commit
09b7fd4ad5
22 files changed
+114
-55
No files matched your search
@@ -516,7 +516,10 @@
|
||||
"seconds": "sec",
|
||||
"copyManually": "Please manually select and copy",
|
||||
"scrollToTop": "Scroll to top",
|
||||
"scrollToBottom": "Scroll to bottom"
|
||||
"scrollToBottom": "Scroll to bottom",
|
||||
"connectingEllipsis": "Connecting...",
|
||||
"enteringWorkspace": "Entering workspace...",
|
||||
"connectingMonitor": "Connecting to monitor..."
|
||||
},
|
||||
"menu": {
|
||||
"dashboard": "Dashboard",
|
||||
@@ -1142,7 +1145,8 @@
|
||||
"loadDirFailed": "Failed to load directory",
|
||||
"downloadFailed": "Download failed: ",
|
||||
"directory": "Directory"
|
||||
}
|
||||
},
|
||||
"jsonFormatPlaceholder": "JSON format, e.g. {\"key\":\"value\"}"
|
||||
},
|
||||
"alert": {
|
||||
"stat": {
|
||||
@@ -1510,7 +1514,9 @@
|
||||
}
|
||||
},
|
||||
"reportTitle": "Terminal Session Audit Report",
|
||||
"csvHeader": "Time,User,Command,Output Size,Session ID,Critical"
|
||||
"csvHeader": "Time,User,Command,Output Size,Session ID,Critical",
|
||||
"rdpRealtimeAudit": "RDP Real-time Audit",
|
||||
"rdpHistoryReplay": "RDP History Replay"
|
||||
},
|
||||
"deploy": {
|
||||
"pipeline": {
|
||||
@@ -2408,7 +2414,19 @@
|
||||
"copyRef": "Copy Reference ID",
|
||||
"testConn": "Test Connection",
|
||||
"noTags": "No tags"
|
||||
}
|
||||
},
|
||||
"placeholderEnv": "Environment",
|
||||
"placeholderStatus": "Status",
|
||||
"noEnvConfig": "No environment configuration",
|
||||
"clickEnvConfigHint": "Click \"Add Environment\" to create",
|
||||
"rdpPassword": "Windows Password",
|
||||
"rdpPasswordPlaceholder": "Windows login password",
|
||||
"selectCredentialPlaceholder": "Select credential",
|
||||
"dockerCredPlaceholder": "Docker credential",
|
||||
"branchListenPlaceholder": "Listen branches, e.g. main, release/*",
|
||||
"rdpUserRequired": "Please fill in RDP username",
|
||||
"rdpPasswordRequired": "Please fill in RDP password",
|
||||
"jobNamePatternHint": "^cex-.* or ^api-server$"
|
||||
},
|
||||
"k8s": {
|
||||
"cluster": {
|
||||
@@ -5075,7 +5093,10 @@
|
||||
"configDesc": "Configure Zabbix API connection to get host monitoring data",
|
||||
"directDb": "Direct DB Connection",
|
||||
"emptyDatasource": "No Zabbix data sources"
|
||||
}
|
||||
},
|
||||
"deletedRules": "Deleted {{count}} alert rules",
|
||||
"setDefaultDsSuccess": "Set \"{{name}}\" as default datasource",
|
||||
"collectSuccess": "{{name}} collection success"
|
||||
},
|
||||
"task": {
|
||||
"cronJob": {
|
||||
@@ -6134,7 +6155,7 @@
|
||||
},
|
||||
"pipeline": {
|
||||
"title": "Pipelines",
|
||||
"subtitle": "CI/CD Build · Deploy · Release All-in-One",
|
||||
"subtitle": "CI/CD build, image packaging & dual-channel deployment",
|
||||
"pipelines": "Pipelines",
|
||||
"addPipeline": "New Pipeline",
|
||||
"editPipeline": "Edit Pipeline",
|
||||
@@ -7374,7 +7395,7 @@
|
||||
"savingDot": "Saving...",
|
||||
"recordAllOps": "Record All Operations",
|
||||
"searchFilterHint": "Search filter (optional, use %s for username)",
|
||||
"batchDeleteUsers": "Batch Delete Users",
|
||||
"batchDeleteUsers": "Deleted {{count}} users",
|
||||
"forcePasswordComplexity": "Enforce Password Complexity",
|
||||
"systemVersion": "System Version",
|
||||
"saveConfig": "Save Configuration",
|
||||
@@ -7530,7 +7551,9 @@
|
||||
"importSelected": "Import ({{count}})",
|
||||
"importAll": "Import All ({{count}})",
|
||||
"editLdapUserDesc": "Modify attributes of {{uid}}",
|
||||
"permEffectTrailing": ", changes take effect after user re-login."
|
||||
"permEffectTrailing": ", changes take effect after user re-login.",
|
||||
"namePlaceholder": "John Doe",
|
||||
"roleTitlePlaceholder": "DevOps Engineer"
|
||||
},
|
||||
"aiops": {
|
||||
"title": "AIOps",
|
||||
@@ -8238,7 +8261,8 @@
|
||||
"predictUtils": {
|
||||
"dailyCostHint": "Review {{scope}}today's high-cost services, pause non-essential resources or adjust auto-scaling",
|
||||
"monthlyBillHint": "Review {{scope}}this month's bill composition, optimize storage/CDN/compute, reduce over-budget quotas"
|
||||
}
|
||||
},
|
||||
"aiAnalysisFailedToast": "AI analysis failed, please check LLM config or try again later"
|
||||
},
|
||||
"breadcrumb": {
|
||||
"dashboard": "Dashboard",
|
||||
|
||||
Reference in new issue
Block a user