refactor(i18n): U41 残余硬编码中文清零 — 工具函数+审计RDP标签+AIOps分析+Monitor残余+审批选项
18 文件 ~35 处 UI 硬编码中文→t()/i18n.t() 调用: - agent-utils.ts timeAgo() 秒前/分钟前/小时前 - utils.ts formatDistanceToNow() 分钟前/小时前/天前 - request.ts 响应解析失败错误消息 - ActiveSessionsPanel/HistorySessionsPanel RDP 在线/历史会话标签 - MetricsExplorer 清除/已选/最近1小时 - HostMonitor 当前主机 subtitle - AIAnalysisResult 证据链 (新增 useTranslation hook) - capacity-predict.ts 容量预测摘要模板 - ApprovalResourcePage 阿里云/腾讯云/华为云 - ApprovalPermissionPage 堡垒机 - site-monitor/helpers.ts 频率/时间/证书天数格式化 - site-monitor/analytics.ts 证书剩余/检查失败/延迟波动事件 - middleware-monitor MwTargetChartsPanel/MwTrendChart/helpers.ts - snmp-monitor SnmpMetricTrendChart/SnmpDeviceChartsPanel - host-monitor/utils.ts 图表点数标签 + PortPolicyDialog 系统进程说明 新增 34 翻译键 (common.duration.secAgo/hourAgo/dayAgo + common.selected/ responseParseError/rdpActiveSessions/rdpHistorySessions/rdpSessionCount/ evidenceChain/last1Hour/currentHost + monitor.lbl 10键 + monitor.siteMonitor 8键 + approval.provider 3键 + approval.permType 1键 + monitor.portPolicyDialog.systemProcessDesc + aiops.capacity.summary) zh/en 7813→7847 对齐; tsc -b=0, npm build✓ (17.31s), ESLint=0/43/any=0, go build=0, 17/17 测试通过
This commit is contained in:
1 parent
4e2ba77aa8
commit
a7838aaf65
23 files changed
+140
-57
No files matched your search
@@ -181,7 +181,10 @@
|
||||
"minSec": "{{m}}m {{s}}s",
|
||||
"hour": "{{count}}h",
|
||||
"hourMin": "{{h}}h {{m}}m",
|
||||
"minAgo": "{{count}} min ago"
|
||||
"minAgo": "{{count}} min ago",
|
||||
"secAgo": "{{count}}s ago",
|
||||
"hourAgo": "{{count}}h ago",
|
||||
"dayAgo": "{{count}}d ago"
|
||||
},
|
||||
"ebCaughtError": "[ErrorBoundary] Caught error:",
|
||||
"ebCopyError": "Copy Error",
|
||||
@@ -623,7 +626,15 @@
|
||||
"fillIfMultiContainer": "(required for multi-container)",
|
||||
"confirmDeleteType": "Delete {{type}} \"{{name}}\"?",
|
||||
"unitCount": "",
|
||||
"fieldValues": "{{count}} values"
|
||||
"fieldValues": "{{count}} values",
|
||||
"selected": "{{count}} selected",
|
||||
"responseParseError": "Response parse failed",
|
||||
"rdpActiveSessions": "RDP Active Sessions",
|
||||
"rdpHistorySessions": "RDP History Sessions",
|
||||
"rdpSessionCount": "RDP sessions: {{count}}",
|
||||
"evidenceChain": "Evidence Chain",
|
||||
"last1Hour": "Last 1 hour",
|
||||
"currentHost": "Current host: {{host}}"
|
||||
},
|
||||
"menu": {
|
||||
"aiAgentCli": "Agent CLI",
|
||||
@@ -1478,7 +1489,15 @@
|
||||
"general": "General Approval"
|
||||
},
|
||||
"workflowSubtitle": "Configure multi-level approval workflows for resource, application, and permission requests",
|
||||
"workflowTitle": "Approval Workflow Config"
|
||||
"workflowTitle": "Approval Workflow Config",
|
||||
"provider": {
|
||||
"aliyun": "Alibaba Cloud",
|
||||
"tencent": "Tencent Cloud",
|
||||
"huawei": "Huawei Cloud"
|
||||
},
|
||||
"permType": {
|
||||
"bastion": "Bastion"
|
||||
}
|
||||
},
|
||||
"audit": {
|
||||
"csvHeader": "Time,User,Command,Output Size,Session ID,Critical",
|
||||
@@ -4423,7 +4442,16 @@
|
||||
"snmpVersion": "SNMP Version",
|
||||
"snmpNoDevice": "No SNMP devices. Click \"Add Device\" to start monitoring.",
|
||||
"snmpCollectMetrics": "Collected Metrics",
|
||||
"snmpNoMetrics": "No metrics yet. Please collect first."
|
||||
"snmpNoMetrics": "No metrics yet. Please collect first.",
|
||||
"noTrendData": "No trend data",
|
||||
"noTrendDataWaiting": "No trend data, waiting for collection",
|
||||
"selectInstanceHint": "Select an instance to view trends and health",
|
||||
"clickDeviceHint": "Click a device row to view CPU / Memory / Temperature / Fan trends",
|
||||
"noMetricsHint": "No visualizable metrics, please complete at least one collection",
|
||||
"usedHint": "Used {{value}}",
|
||||
"clusterNodesHint": "Cluster {{value}} nodes",
|
||||
"slowQueriesHint": "Slow queries {{value}}",
|
||||
"pointCount": "{{min}} — {{max}} · {{count}} pts"
|
||||
},
|
||||
"logAlertBell": {
|
||||
"linked": "Alert Policy Linked",
|
||||
@@ -4813,7 +4841,8 @@
|
||||
"neverReport": "Never report",
|
||||
"filterMode": "Filter Mode",
|
||||
"title": "Port Monitoring Policy",
|
||||
"desc": "Configure Agent port reporting filter rules"
|
||||
"desc": "Configure Agent port reporting filter rules",
|
||||
"systemProcessDesc": "⚠️ Regardless of mode, the following system process ports {{neverReport}}: sshd, rpcbind, master, systemd, dbus-daemon, rsyslogd, etc. Automatically skipped during collection."
|
||||
},
|
||||
"postgresql": "PostgreSQL",
|
||||
"prevPage": "Previous",
|
||||
@@ -5004,7 +5033,15 @@
|
||||
"probeDesc": "Configure probe tasks by protocol type, the system will automatically probe at intervals",
|
||||
"taskNotFound": "Probe task does not exist or has been deleted",
|
||||
"clickToObserve": "Click to view details",
|
||||
"alerting": "Alerting"
|
||||
"alerting": "Alerting",
|
||||
"recommendFreq": "Recommended {{freq}}, min {{minFreq}}",
|
||||
"seconds": "{{count}}s",
|
||||
"minutes": "{{count}}min",
|
||||
"hours": "{{count}}h",
|
||||
"certDays": "{{count}}d",
|
||||
"certRemaining": "Certificate remaining {{days}} days",
|
||||
"checkFailed": "{{label}} failed",
|
||||
"latencyFluctuation": "{{label}} latency fluctuation"
|
||||
},
|
||||
"siteProbe": "Site Probe",
|
||||
"siteProbeTitle": "Site Probe Tasks",
|
||||
@@ -7933,7 +7970,8 @@
|
||||
"expertPrompt": "You are an AIOps capacity planning expert. Based on the following server resource capacity forecast data, provide a comprehensive risk assessment and actionable operations recommendations:",
|
||||
"resCpu": "Server CPU Compute",
|
||||
"resMemory": "Server Memory",
|
||||
"resDisk": "Storage Disk Space"
|
||||
"resDisk": "Storage Disk Space",
|
||||
"summary": "- {{resource}}: Current {{current}}% → 7-day forecast {{predicted}}% (threshold {{threshold}}%), {{risk}}"
|
||||
},
|
||||
"capacityPlanPrompt": "Based on the following host resource usage, provide cost optimization and capacity planning advice (identify idle/overloaded hosts; suggest scale-down/scale-up)",
|
||||
"capacityPlanning": "Capacity Planning",
|
||||
|
||||
Reference in new issue
Block a user