refactor(i18n): U17 K8s 残余组件 i18n 补全 — NodeDetailPage 16 处硬编码中文清零 + 8 个 hash 键替换为语义化 k8s.nodeDetail.* + DeploymentWorkload 12 处 toast/confirm 硬编码中文清零. 新增 k8s.nodeDetail 命名空间 21 键 + k8s.deploymentDetail 扩展 12 键(含插值). zh/en 7564→7597 对齐. 组件从 i18n.t() 全局改为 useTranslation() hook. tsc -b=0, npm build✓, ESLint=0, 17/17 测试通过

This commit is contained in:
attacker committed 2026-07-11 03:33:31 +08:00
1 parent a85e063a47
commit be1011eb58
5 files changed
+129 -57

No files matched your search

+36 -1
View File
@@ -2771,7 +2771,19 @@
"notFound": "未找到 Deployment",
"podList": "Pod 列表",
"logs": "日志",
"confirmDeleteHpa": "确定删除 HPA"
"confirmDeleteHpa": "确定删除 HPA",
"replicasSetTo": "副本数已设置为 {{count}}",
"confirmRestart": "确认滚动重启 Deployment \"{{name}}\"?",
"rollingUpdate": "{{action}}滚动更新",
"confirmRollingUpdate": "确认{{action}} Deployment \"{{name}}\" 的滚动更新?",
"actionSuccess": "{{action}}成功",
"actionFailed": "{{action}}失败",
"rollingUpdated": "Deployment 滚动更新已{{action}}",
"rollingUpdateImage": "正在滚动更新为 {{image}}",
"deploymentDeleted": "{{name}} 已删除",
"confirmDeletePod": "确认删除 Pod \"{{name}}\"?操作不可恢复。",
"deploymentNotFound": "未找到 Deployment: {{name}}",
"imageLabel": "镜像"
},
"podLogs": {
"noLogs": "无日志",
@@ -3234,6 +3246,29 @@
"configured": "已配置(留空不修改)",
"kubeconfigHint": "粘贴 kubeconfig 内容后将自动解析 API Server 地址",
"cancel": "取消"
},
"nodeDetail": {
"nodeTitle": "节点详情",
"loadingNode": "加载节点详情...",
"loadFailed": "无法加载节点详情",
"systemInfo": "系统信息",
"resourceAllocation": "资源分配率",
"cpuAllocated": "CPU 已分配",
"cpuRealtimeUsage": "CPU 实时使用",
"memAllocated": "内存已分配",
"memRealtimeUsage": "内存实时使用",
"podCount": "Pod 数量",
"cpuCapacityAlloc": "CPU 容量 / 可分配",
"memCapacityAlloc": "内存容量 / 可分配",
"podCapacityAlloc": "Pod 容量 / 可分配",
"coreUnit": "核",
"conditions": "节点条件",
"noConditions": "无条件数据",
"taints": "污点 (Taints)",
"labels": "标签 ({{count}})",
"podsOnNode": "节点上的 Pod",
"noPodsOnNode": "该节点上暂无 Pod",
"cpuRequest": "CPU 请求"
}
},
"monitor": {