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": "严重",
"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": "开发者"
}
}