refactor(i18n): U44 残余硬编码中文清零 — 终端审计状态+凭证类型+流水线阶段+时间格式+CSV导出

20 文件 ~70 处 UI 硬编码中文清零:
- credential-manager/constants.ts: 8 凭证类型 label/desc → labelKey/descKey + i18n.t()
- pipeline-run-detail/types.ts: 6 阶段 label → i18n.t('deploy.stage.*') + labelKey
- pipeline-manager/constants.ts + pipeline-editor/types.ts: 分秒 duration → i18n.t('common.duration.minSec')
- LiveMonitorDialog: 6 终端状态消息 → t()
- RdpAuditViewer: 6 RDP审计状态 → i18n.t('monitor.rdp.*')
- WorkspaceTermDialog: 2 终端连接状态 → t()
- TerminalSessionsTab: 4 时长格式+状态标签 → i18n.t()/t()
- k8s-event-utils + QueryHistoryPanel: 6 相对时间 → i18n.t('common.duration.*Ago')
- export-audit.ts: 9 CSV导出表头 → i18n.t('system.auditExport.*')
- useAuditSettings: 4 审计保留策略消息 → i18n.t('system.auditSettings.*')
- event-handler.ts: 4 AgentCLI事件消息 → i18n.t('aiops.cli.*')
- 其他 9 文件: NotifyPolicyTab/RoleFormDialog/CronJobViewDialog/TerminalOutput/shared-components/prometheus-ds/helpers/CloudServerImport/AdvancedSettingsPanel/releaseManagerHelpers

新增 75 翻译键, zh/en 7987→8059 对齐
tsc -b=0, npm build✓ (17.13s), ESLint=0/43/any=0, go build=0, 17/17 测试通过
This commit is contained in:
attacker committed 2026-07-14 23:13:32 +08:00
1 parent bd1ccefa7f
commit 05ee051879
26 files changed
+307 -93

No files matched your search

+115 -11
View File
@@ -184,7 +184,9 @@
"minAgo": "{{count}} min ago",
"secAgo": "{{count}}s ago",
"hourAgo": "{{count}}h ago",
"dayAgo": "{{count}}d ago"
"dayAgo": "{{count}}d ago",
"seconds": "{{count}}s",
"hoursMin": "{{h}}h {{m}}m"
},
"ebCaughtError": "[ErrorBoundary] Caught error:",
"ebCopyError": "Copy Error",
@@ -1290,7 +1292,10 @@
"loggingIn": "Logging in..."
},
"webshellConnect": "Connect",
"webshellLoggingIn": "Logging in..."
"webshellLoggingIn": "Logging in...",
"import": {
"discoverFailed": "Failed to discover hosts"
}
},
"alert": {
"acknowledged": "Alert acknowledged",
@@ -2538,7 +2543,8 @@
"notInstalled": "Not installed",
"installing": "Installing",
"test": "Test",
"install": "Install"
"install": "Install",
"recommended": "Recommended"
},
"trigger": {
"manual": "Manual",
@@ -2583,7 +2589,35 @@
"envVar": "Environment Variables",
"envVarOptional": "Environment Variables (optional)"
},
"workspaceTerminalTitle": "Workspace Terminal #{{num}}"
"workspaceTerminalTitle": "Workspace Terminal #{{num}}",
"credType": {
"ssh": "SSH Key",
"rdp": "Windows RDP Password",
"docker": "Docker Credential",
"tls": "TLS Certificate",
"aksk": "AKSK Key",
"database": "Database Credential",
"api": "API Key",
"generic": "Generic Credential"
},
"credTypeDesc": {
"ssh": "SSH private/public key/password",
"rdp": "Windows remote desktop username/password",
"docker": "Docker Registry login credentials",
"tls": "TLS/SSL certificate and private key",
"aksk": "Cloud AccessKey/SecretKey",
"database": "Database connection info",
"api": "API Token/Key + endpoint",
"generic": "Custom Key/Value pairs"
},
"fmtDuration": {
"minSec": "{{m}}m {{s}}s"
},
"terminal": {
"connClosed": "[Connection Closed]",
"connError": "[Connection Error]"
},
"jobName": "Job Name"
},
"k8s": {
"actionModal": {
@@ -3708,7 +3742,8 @@
"serviceName": "Service Name",
"podCount": "Pod Count",
"actualSchedule": "Actual Schedule",
"restartSentDesc": "{{kind}} rolling restart triggered"
"restartSentDesc": "{{kind}} rolling restart triggered",
"memoryLabel": "Memory"
},
"workloads": {
"scaleSuccess": "Scaling succeeded",
@@ -4976,7 +5011,9 @@
"noData": "No Prometheus datasources",
"addHint": "Add datasources for metrics monitoring and dashboards"
},
"prometheus": "Prometheus",
"prometheus": {
"connSuccess": "Connection successful · {{count}} targets"
},
"prometheusDashb": {
"connecting": "Connecting…"
},
@@ -5397,6 +5434,25 @@
"durationMinutes": "{{count}} min",
"queryHistory": {
"count": "{{count}} entries"
},
"terminal": {
"auditConnected": "[Audit Monitor] Connected to session...",
"userServer": "User: {{username}} Server: {{serverName}} ({{serverIp}})",
"wsConnFailed": "WebSocket connection failed",
"connFailedCode": "Connection failed (code={{code}}): {{reason}}",
"auditDisconnected": "[Audit Monitor] Disconnected",
"authOrNetwork": "Authentication failed or network issue"
},
"rdp": {
"connectingLive": "Connecting to RDP live audit...",
"loadingRecording": "Loading RDP recording...",
"liveConnFailed": "RDP live audit connection failed",
"liveDisconnected": "RDP live audit disconnected",
"noFrames": "No playable frames for this RDP session",
"loadFailed": "RDP recording load failed"
},
"notify": {
"defaultPlatform": "AIOps Platform"
}
},
"task": {
@@ -5476,7 +5532,9 @@
"confirmDelete": "Delete \"{{name}}\"? This cannot be undone.",
"execDuration": "Duration: {{ms}}ms"
},
"runCount": "{{count}} times"
"runCount": "{{count}} times",
"associatedScript": "Associated Script",
"noCommand": "(No command content)"
},
"cronJobCol": {
"task": "Task",
@@ -5601,6 +5659,9 @@
"noShell": "No shell interpreter detected. Scripts cannot run on this host. For Docker deployments, ensure bash is installed in the image.",
"noPython": "Python is not installed. Python scripts will not be executable.",
"partialUnavailable": "Some interpreters are unavailable; scripts of those types cannot run after creation."
},
"terminal": {
"noOutput": "(No output)"
}
},
"rbac": {
@@ -7466,7 +7527,12 @@
"invalidRetentionDays": "Please select valid retention days",
"noExpiredRecords": ", no expired records"
},
"auditSettings": "Audit Settings",
"auditSettings": {
"appliedWithCleanup": "Applied {{days}}-day retention policy, cleaned {{total}} expired records",
"appliedNoCleanup": "Applied {{days}}-day retention policy, no expired records to clean",
"cleanupCount": ", cleaned {{count}} records",
"lastCleanup": "Last cleanup: {{time}}{{detail}}"
},
"auditSettingsDesc": "Operation logs and audit policy",
"auditStats": "Audit Statistics",
"auditSuccess": "Success",
@@ -7818,7 +7884,12 @@
"terminalRecordSize": "Recording Size",
"terminalReplay": "Replay",
"terminalServer": "Server",
"terminalSession": "Session",
"terminalSession": {
"all": "All",
"active": "Active",
"closed": "Closed",
"failed": "Failed"
},
"terminalStartTime": "Start Time",
"terminalStatus": "Status",
"terminalUser": "User",
@@ -7897,7 +7968,35 @@
"credentialAkSk": "AK/SK (one pair per line, space or comma separated)",
"credentialEncryptedHint": "Credentials are encrypted with AES-256-GCM, decrypted only on server side",
"permissionAssign": "Permission Assignment",
"adminPassword": "Admin Password"
"adminPassword": "Admin Password",
"csvHeader": {
"username": "Username",
"nickname": "Nickname",
"displayName": "Display Name",
"email": "Email",
"phone": "Phone",
"role": "Role",
"department": "Department"
},
"auditExport": {
"sessionId": "Session ID",
"user": "User",
"targetHost": "Target Host",
"clientIp": "Client IP",
"startTime": "Start Time",
"endTime": "End Time",
"duration": "Duration",
"commandCount": "Command Count",
"status": "Status"
},
"credTypeLabel": {
"sshKey": "SSH Private Key",
"apiToken": "Token",
"password": "Password"
},
"role": {
"aiopsGroup": "AIOps Intelligence"
}
},
"aiops": {
"activeCount": "{{count}} active",
@@ -8255,7 +8354,12 @@
"execute": "Run"
},
"confirmHighRiskTitle": "⚠️ Confirm High-Risk Operation",
"confirmHighRiskDesc": "Tool: {{tool}}\nRisk: {{risk}}\nCommand: {{command}}"
"confirmHighRiskDesc": "Tool: {{tool}}\nRisk: {{risk}}\nCommand: {{command}}",
"eventRejected": "Execution rejected: {{command}}",
"eventRecovered": "Session recovered",
"eventCompleted": "Task completed. Please check the tool execution results above.",
"eventAborted": "Task aborted",
"eventFailed": "Task execution failed"
},
"cloudService": "Cloud Services",
"codingPlan": "Coding Plan",