refactor(i18n): U28 多模块 phantom key 清零 — theme/middleware-monitor/site-monitor/analytics/cost-predict/predict-types/agentAlertHelper/export-audit/AgentCLIMessages/copy-button 10 文件 74 phantom key → 语义化键, 新增 4 命名空间 (theme/agent.alerts.metric*/audit.*) + 扩展 3 命名空间 (monitor.lbl.mw*/site*/aiops.predict*), zh/en 7294→7358 +64 键对齐, phantom key 103→29 (残留全为 JSX 模板表达式/ANSI 转义码误匹配), tsc -b=0, npm build✓ (17.40s), ESLint=0/53/0, go build=0, 17/17 测试通过

This commit is contained in:
attacker committed 2026-07-12 05:18:52 +08:00
1 parent b812b3b20c
commit b2715ca3bd
12 files changed
+206 -74

No files matched your search

+71 -5
View File
@@ -513,7 +513,8 @@
"critical": "Critical",
"request.tokenExpired": "Session expired, please log in again",
"days": "days",
"seconds": "sec"
"seconds": "sec",
"copyManually": "Please manually select and copy"
},
"menu": {
"dashboard": "Dashboard",
@@ -1505,7 +1506,9 @@
"failed": "Failed",
"closed": "Closed"
}
}
},
"reportTitle": "Terminal Session Audit Report",
"csvHeader": "Time,User,Command,Output Size,Session ID,Critical"
},
"deploy": {
"pipeline": {
@@ -4865,7 +4868,44 @@
"selectMetricsHint": "Please check metrics from the left panel",
"probeName": "Probe Name",
"execCommand": "Execute Command",
"refreshing": " · Refreshing..."
"refreshing": " · Refreshing...",
"mwMemUsage": "Memory Usage",
"mwSlowQueryRate": "Slow Query Rate",
"mwBlockedClients": "Blocked Clients",
"mwActiveThreads": "Active Threads",
"mwBufferHitRate": "Buffer Pool Hit Rate",
"mwPerCycle": "/cycle",
"mwCluster": "Cluster",
"mwInstanceOffline": "Instance Offline",
"mwHitRateBelow80": "Hit Rate < 80%",
"mwHitRateBelow90": "Hit Rate < 90%",
"mwMemAbove90": "Memory > 90%",
"mwMemAbove80": "Memory > 80%",
"mwKeyEviction": "Key Eviction",
"mwBufferHitBelow90": "Buffer Pool Hit < 90%",
"mwBufferHitBelow95": "Buffer Pool Hit < 95%",
"mwConnAbove90": "Connections > 90% Limit",
"mwConnAbove80": "Connections > 80% Limit",
"mwTooManyThreads": "Too Many Active Threads",
"siteRecentHour": "Last 1 hour",
"siteRecent24h": "Last 24 hours",
"siteRecent7d": "Last 7 days",
"siteTargetUrl": "Target URL",
"siteHttpHint": "Web request (supports http/https), detects status code and response time",
"siteSslAddr": "SSL Address",
"siteSslPlaceholder": "example.com:443 or https://example.com",
"siteSslHint": "TLS handshake certificate check (supports host:port / https:// domain, no HTTP request)",
"siteHostPort": "Host:Port",
"siteTcpPlaceholder": "192.168.1.1:8080 or example.com:443",
"siteTcpHint": "TCP Port Connectivity",
"siteHostAddr": "Host Address",
"sitePingPlaceholder": "192.168.1.1 or example.com",
"sitePingHint": "ICMP connectivity and latency (default 2 min/interval)",
"siteServerError": "Server Error",
"siteClientError": "Client/Auth Error",
"siteRequestFailed": "Request Failed",
"siteRequestTimeout": "Request Timeout",
"siteConnFailed": "Connection Failed"
},
"alertRuleDialog2": {
"editRule": "Edit Alert Rule",
@@ -6806,7 +6846,11 @@
"deleteRule": "Delete Rule",
"thresholdTriggered": "Alert threshold triggered",
"noResolved": "No resolved alerts",
"noActive": "No active alerts, all clear"
"noActive": "No active alerts, all clear",
"metricSwap": "Swap Usage",
"metricLoad1": "1-min Load Average",
"metricInode": "Inode Usage",
"metricTcpEst": "TCP Established"
},
"monitor": {
"loadHostFailed": "Failed to load host list",
@@ -7809,7 +7853,17 @@
"predictTypes": {
"memUsage": "Memory Usage",
"diskUsage": "Disk Usage"
}
},
"predictMemLeak": "Investigate memory leaks, optimize process memory config, consider adding nodes",
"predictDiskFull": "Clean up historical data and logs, implement data archiving, expand disk",
"predictIn24h": "In 24 hours",
"predictNext24h": "Next 24 hours",
"predictCpuUsage": "CPU Usage",
"predictIn1h": "In 1 hour",
"predictIn7d": "In 7 days",
"predictIn30d": "In 30 days",
"agentCliErrorOccurred": "Error occurred",
"agentCliNoOutput": "(no output)"
},
"breadcrumb": {
"dashboard": "Dashboard",
@@ -7936,5 +7990,17 @@
"quickQuery": "Quick Query",
"quickQueryHint": "{{engine}} common query templates, click to fill",
"entries": "entries"
},
"theme": {
"system": "Follow System",
"deepBlue": "Deep Ocean Blue",
"brightWhite": "Bright White",
"brightWhiteDesc": "Enterprise console clean light theme",
"oneDarkDesc": "Atom warm gray IDE, purple-green syntax",
"draculaDesc": "Classic purple-pink dark, high contrast",
"tokyoNightDesc": "Tokyo neon deep blue-purple, VS Code popular",
"catppuccinDesc": "Macaron soft dark, eye-friendly",
"mainstream": "Mainstream",
"developer": "Developer"
}
}
+71 -5
View File
@@ -513,7 +513,8 @@
"critical": "严重",
"request.tokenExpired": "登录已过期,请重新登录",
"days": "天",
"seconds": "秒"
"seconds": "秒",
"copyManually": "请手动选中内容后复制"
},
"menu": {
"dashboard": "仪表盘",
@@ -1505,7 +1506,9 @@
"failed": "失败",
"closed": "已关闭"
}
}
},
"reportTitle": "终端会话审计报告",
"csvHeader": "时间,用户,命令,输出大小,会话ID,高危"
},
"deploy": {
"pipeline": {
@@ -4865,7 +4868,44 @@
"selectMetricsHint": "请从左侧勾选指标",
"probeName": "探针名称",
"execCommand": "执行命令",
"refreshing": " · 刷新中..."
"refreshing": " · 刷新中...",
"mwMemUsage": "内存占用",
"mwSlowQueryRate": "慢查询速率",
"mwBlockedClients": "阻塞客户端",
"mwActiveThreads": "活跃线程",
"mwBufferHitRate": "缓冲池命中率",
"mwPerCycle": "次/周期",
"mwCluster": "集群",
"mwInstanceOffline": "实例离线",
"mwHitRateBelow80": "命中率 < 80%",
"mwHitRateBelow90": "命中率 < 90%",
"mwMemAbove90": "内存 > 90%",
"mwMemAbove80": "内存 > 80%",
"mwKeyEviction": "Key 逐出",
"mwBufferHitBelow90": "缓冲池命中 < 90%",
"mwBufferHitBelow95": "缓冲池命中 < 95%",
"mwConnAbove90": "连接 > 90% 上限",
"mwConnAbove80": "连接 > 80% 上限",
"mwTooManyThreads": "活跃线程偏多",
"siteRecentHour": "近 1 小时",
"siteRecent24h": "近 24 小时",
"siteRecent7d": "近 7 天",
"siteTargetUrl": "目标 URL",
"siteHttpHint": "Web 请求(支持 http/https),检测状态码与响应时间",
"siteSslAddr": "SSL 地址",
"siteSslPlaceholder": "example.com:443 或 https://example.com",
"siteSslHint": "TLS 握手检测证书(支持 host:port / https:// 域名,不发起 HTTP 请求)",
"siteHostPort": "主机:端口",
"siteTcpPlaceholder": "192.168.1.1:8080 或 example.com:443",
"siteTcpHint": "TCP 端口连通性",
"siteHostAddr": "主机地址",
"sitePingPlaceholder": "192.168.1.1 或 example.com",
"sitePingHint": "ICMP 连通性与延迟(默认 2 分钟/次)",
"siteServerError": "服务端错误",
"siteClientError": "客户端/鉴权错误",
"siteRequestFailed": "请求失败",
"siteRequestTimeout": "请求超时",
"siteConnFailed": "连接失败"
},
"alertRuleDialog2": {
"editRule": "编辑告警规则",
@@ -6806,7 +6846,11 @@
"deleteRule": "删除规则",
"thresholdTriggered": "触发告警阈值",
"noResolved": "暂无已恢复的告警",
"noActive": "当前无活动告警,一切正常"
"noActive": "当前无活动告警,一切正常",
"metricSwap": "Swap 使用率",
"metricLoad1": "1分钟负载",
"metricInode": "Inode 使用率",
"metricTcpEst": "TCP 已建立"
},
"monitor": {
"loadHostFailed": "加载主机列表失败",
@@ -7809,7 +7853,17 @@
"predictTypes": {
"memUsage": "内存使用率",
"diskUsage": "磁盘使用率"
}
},
"predictMemLeak": "排查内存泄漏,优化进程内存配置,考虑增加节点",
"predictDiskFull": "清理历史数据和日志,实施数据归档策略,扩容磁盘",
"predictIn24h": "24小时后",
"predictNext24h": "未来24小时",
"predictCpuUsage": "CPU使用率",
"predictIn1h": "1小时后",
"predictIn7d": "7天后",
"predictIn30d": "30天后",
"agentCliErrorOccurred": "发生错误",
"agentCliNoOutput": "(无输出)"
},
"breadcrumb": {
"dashboard": "仪表盘",
@@ -7936,5 +7990,17 @@
"quickQuery": "快捷查询",
"quickQueryHint": "{{engine}} 常用查询模板,点击快速填充",
"entries": "条"
},
"theme": {
"system": "跟随系统",
"deepBlue": "深海蓝",
"brightWhite": "明亮白",
"brightWhiteDesc": "企业控制台清爽浅色",
"oneDarkDesc": "Atom 暖灰 IDE,紫绿语法渐变",
"draculaDesc": "经典紫粉暗色,极高辨识度",
"tokyoNightDesc": "东京霓虹深蓝紫,VS Code 热门",
"catppuccinDesc": "马卡龙柔和暗色,护眼",
"mainstream": "主流",
"developer": "开发者"
}
}