refactor(i18n): U33 K8s 资源编辑器 + Pod 日志/Metrics 模板字面量中文清零
resource-visual-editors/ 5 文件 (ConfigMap/Secret/Service/Ingress/PvcEditor): - 保存按钮文案 (保存配置/密钥/Service/Ingress/PVC) - IngressEditor: (可选)/手工输入/帮助文本/常见示例/手动输入/继续手动输入 - PvcEditor: 访问模式描述 (单节点读写/多节点只读/多节点读写) pod-logs-viewer/ 3 文件: - ControlBar: 导出/刷新/实时/停止按钮 - LogContentArea: 加载中… 占位 - LogsHeader: 日志标题模板 PodLogsViewer: 6 处错误消息 + DialogTitle/Description PodMetricsPage: subtitle 模板字面量 + 所有命名空间 PodExecTerminal: 连接错误消息 17 处 toast description 模板字面量中文→i18n.t() 插值: - DeploymentEditAdvanced/Containers/Storage: 更新已提交 - DeploymentView: 回滚/伸缩 - DeploymentDetail: 伸缩/镜像更新 - DeploymentEditService: 资源删除 - ResourceVisualEditor/NamespaceResourcePage: 资源更新/YAML下载 - ClusterOverviewPage: 集群未找到 - DeploymentEditContainers: 容器名称/镜像为空 5 处 confirm description 中文→i18n.t() 插值: - DeploymentView/EditService/Detail/WorkloadViewPage/MiddlewareMonitor/SiteMonitor/HealthProbeSection 5 处 subtitle 模板字面量中文→i18n.t(): - PodMetricsPage/CapacityPage/EventsPage/KubernetesNodes/ClusterOverviewPage 新增 k8s.rve 14键 + k8s.toast 18键 + k8s.podMetrics 4键 + k8s.podLogs 13键 = 49 翻译键 zh/en 7481→7524 完全对齐 tsc -b=0, npm build✓ (17.76s), ESLint errors=0/warnings=43/any=0, go build=0, 17/17 测试通过
This commit is contained in:
1 parent
5fbb5f824d
commit
ad9acea1e5
31 files changed
+167
-72
No files matched your search
@@ -2775,11 +2775,11 @@
|
||||
"podLogs": {
|
||||
"noLogs": "No logs",
|
||||
"loadFailed": "Failed to load logs",
|
||||
"streamInterrupted": "Stream connection interrupted",
|
||||
"streamInterrupted": "[Stream connection interrupted: {{msg}}]",
|
||||
"streaming": "Streaming...",
|
||||
"liveStream": "Live Stream",
|
||||
"noLogContent": "No log content",
|
||||
"logTitle": "Logs",
|
||||
"logTitle": "Logs — {{name}}",
|
||||
"logDesc": "Pod container log viewer",
|
||||
"export": "Export",
|
||||
"refreshLogs": "Refresh",
|
||||
@@ -2791,13 +2791,20 @@
|
||||
"bufferFull": "Buffer full",
|
||||
"matched": "Matched",
|
||||
"loading": "Loading…",
|
||||
"fetchFailed": "Failed to fetch logs",
|
||||
"streamEnded": "Stream ended",
|
||||
"streamStopped": "Stream stopped",
|
||||
"fetchFailed": "[Failed to fetch logs: {{msg}}]",
|
||||
"streamEnded": "— Stream ended —",
|
||||
"streamStopped": "— Stopped —",
|
||||
"download": "Download Logs",
|
||||
"searchPlaceholder": "Search logs...",
|
||||
"previousLogs": "View previous (crashed) container logs",
|
||||
"keywordFilter": "Keyword filter…"
|
||||
"keywordFilter": "Keyword filter…",
|
||||
"liveTail": "Live Tail",
|
||||
"exportBtn": "Export",
|
||||
"refreshBtn": "Refresh",
|
||||
"liveBtn": "Live",
|
||||
"stopBtn": "Stop",
|
||||
"loadingDots": "Loading…",
|
||||
"connError": "[Connection error]"
|
||||
},
|
||||
"editMode": {
|
||||
"basic": "Basic Info",
|
||||
@@ -3182,7 +3189,11 @@
|
||||
"memory": "总内存",
|
||||
"namespace": "所有命名空间",
|
||||
"cpuUsage": "CPU Usage",
|
||||
"memUsage": "Memory Usage"
|
||||
"memUsage": "Memory Usage",
|
||||
"realtimeMetrics": "Container CPU/Memory real-time metrics",
|
||||
"allNamespaces": "All Namespaces",
|
||||
"colNamespace": "Namespace",
|
||||
"colContainer": "Container"
|
||||
},
|
||||
"resourceEditor": {
|
||||
"create": "Create",
|
||||
@@ -3366,7 +3377,22 @@
|
||||
"keyPlaceholder": "Key name (e.g. LOG_LEVEL)",
|
||||
"parseYamlFailed": "Unable to parse YAML",
|
||||
"checkSyntax": "Please check syntax and continue in YAML mode",
|
||||
"fallbackToYaml": "Unable to parse resource structure, switched to YAML edit mode"
|
||||
"fallbackToYaml": "Unable to parse resource structure, switched to YAML edit mode",
|
||||
"saveConfigMap": "Save ConfigMap",
|
||||
"saveSecret": "Save Secret",
|
||||
"saveService": "Save Service",
|
||||
"saveIngress": "Save Ingress",
|
||||
"savePvc": "Save PVC",
|
||||
"optional": "(Optional)",
|
||||
"manualInput": "Manual input:",
|
||||
"manualEntry": "(Manual)",
|
||||
"continueManual": "—— Continue manual input ——",
|
||||
"ingressHelp1": "Your cluster may have multiple IngressControllers. You can specify which IngressController this Ingress corresponds to.",
|
||||
"ingressHelp2": "Select from the IngressClass list, or enter a name manually.",
|
||||
"commonExamples": "Common:",
|
||||
"accessModeRWO": "ReadWriteOnce (Single node read-write)",
|
||||
"accessModeROX": "ReadOnlyMany (Multi-node read-only)",
|
||||
"accessModeRWX": "ReadWriteMany (Multi-node read-write)"
|
||||
},
|
||||
"workloadView": {
|
||||
"restartSent": "Restart command sent",
|
||||
@@ -3467,6 +3493,26 @@
|
||||
},
|
||||
"podFile": {
|
||||
"loadFailed": "Failed to load file list"
|
||||
},
|
||||
"toast": {
|
||||
"updatedSubmitted": "{{name}} update submitted",
|
||||
"yamlDownloadStarted": "{{namespace}} resource YAML download started",
|
||||
"rollbackToRevision": "Rolling back to #{{revision}}",
|
||||
"scaleTo": "Replicas → {{count}}",
|
||||
"scaleSet": "Replicas set to {{count}}",
|
||||
"imageUpdating": "Rolling update to {{image}}",
|
||||
"resourceUpdated": "{{resource}}/{{name}} updated",
|
||||
"resourceDeleted": "{{kind}} {{name}} deleted",
|
||||
"containerNameEmpty": "Container name cannot be empty",
|
||||
"containerImageEmpty": "Container {{name}} image cannot be empty",
|
||||
"clusterNotFound": "Cluster {{code}} not found",
|
||||
"confirmRollback": "Confirm rollback to revision #{{revision}}?",
|
||||
"confirmDeleteResource": "Confirm delete {{kind}} \"{{name}}\"? This cannot be undone.",
|
||||
"confirmDeleteHpa": "Delete HPA \"{{name}}\"?",
|
||||
"confirmRestart": "Confirm restart {{kind}} {{name}}? This will trigger a rolling restart.",
|
||||
"confirmDeleteProbe": "Delete probe \"{{name}}\"?",
|
||||
"confirmDeleteMonitor": "Confirm delete \"{{name}}\"?",
|
||||
"confirmDeleteTask": "Delete \"{{name}}\"?"
|
||||
}
|
||||
},
|
||||
"monitor": {
|
||||
|
||||
@@ -2775,11 +2775,11 @@
|
||||
"podLogs": {
|
||||
"noLogs": "无日志",
|
||||
"loadFailed": "获取日志失败",
|
||||
"streamInterrupted": "流式连接中断",
|
||||
"streamInterrupted": "[流式连接中断: {{msg}}]",
|
||||
"streaming": "流中...",
|
||||
"liveStream": "实时流",
|
||||
"noLogContent": "无日志内容",
|
||||
"logTitle": "日志",
|
||||
"logTitle": "日志 — {{name}}",
|
||||
"logDesc": "Pod 容器日志查看",
|
||||
"export": "导出",
|
||||
"refreshLogs": "刷新",
|
||||
@@ -2791,13 +2791,20 @@
|
||||
"bufferFull": "缓冲已满",
|
||||
"matched": "匹配",
|
||||
"loading": "加载中…",
|
||||
"fetchFailed": "获取日志失败",
|
||||
"streamEnded": "流式传输结束",
|
||||
"streamStopped": "流式传输已停止",
|
||||
"fetchFailed": "[获取日志失败: {{msg}}]",
|
||||
"streamEnded": "— 流式结束 —",
|
||||
"streamStopped": "— 已停止 —",
|
||||
"download": "下载日志",
|
||||
"searchPlaceholder": "搜索日志...",
|
||||
"previousLogs": "查看上一次(崩溃)容器的日志",
|
||||
"keywordFilter": "关键字过滤…"
|
||||
"keywordFilter": "关键字过滤…",
|
||||
"liveTail": "实时跟踪",
|
||||
"exportBtn": "导出",
|
||||
"refreshBtn": "刷新",
|
||||
"liveBtn": "实时",
|
||||
"stopBtn": "停止",
|
||||
"loadingDots": "加载中…",
|
||||
"connError": "[连接发生错误]"
|
||||
},
|
||||
"editMode": {
|
||||
"basic": "基本信息",
|
||||
@@ -3182,7 +3189,11 @@
|
||||
"memory": "总内存",
|
||||
"namespace": "所有命名空间",
|
||||
"cpuUsage": "CPU 使用",
|
||||
"memUsage": "内存使用"
|
||||
"memUsage": "内存使用",
|
||||
"realtimeMetrics": "容器 CPU/内存实时指标",
|
||||
"allNamespaces": "所有命名空间",
|
||||
"colNamespace": "命名空间",
|
||||
"colContainer": "容器"
|
||||
},
|
||||
"resourceEditor": {
|
||||
"create": "新建",
|
||||
@@ -3366,7 +3377,22 @@
|
||||
"keyPlaceholder": "键名 (如 LOG_LEVEL)",
|
||||
"parseYamlFailed": "无法解析 YAML",
|
||||
"checkSyntax": "请检查语法后继续用 YAML 模式",
|
||||
"fallbackToYaml": "无法解析资源结构,已切换到 YAML 编辑模式"
|
||||
"fallbackToYaml": "无法解析资源结构,已切换到 YAML 编辑模式",
|
||||
"saveConfigMap": "保存配置",
|
||||
"saveSecret": "保存密钥",
|
||||
"saveService": "保存 Service",
|
||||
"saveIngress": "保存 Ingress",
|
||||
"savePvc": "保存 PVC",
|
||||
"optional": "(可选)",
|
||||
"manualInput": "手工输入:",
|
||||
"manualEntry": "(手动输入)",
|
||||
"continueManual": "—— 继续手动输入 ——",
|
||||
"ingressHelp1": "您的集群中可能有多个 IngressController,您可在此指定当前 Ingress 对应哪个 IngressController。",
|
||||
"ingressHelp2": "从 IngressClass 列表选择,或手工输入名称。",
|
||||
"commonExamples": "常见:",
|
||||
"accessModeRWO": "ReadWriteOnce (单节点读写)",
|
||||
"accessModeROX": "ReadOnlyMany (多节点只读)",
|
||||
"accessModeRWX": "ReadWriteMany (多节点读写)"
|
||||
},
|
||||
"workloadView": {
|
||||
"restartSent": "重启指令已下发",
|
||||
@@ -3467,6 +3493,26 @@
|
||||
},
|
||||
"podFile": {
|
||||
"loadFailed": "加载文件列表失败"
|
||||
},
|
||||
"toast": {
|
||||
"updatedSubmitted": "{{name}} 更新已提交",
|
||||
"yamlDownloadStarted": "{{namespace}} 资源 YAML 已开始下载",
|
||||
"rollbackToRevision": "正在回滚到 #{{revision}}",
|
||||
"scaleTo": "副本数 → {{count}}",
|
||||
"scaleSet": "副本数已设置为 {{count}}",
|
||||
"imageUpdating": "正在滚动更新为 {{image}}",
|
||||
"resourceUpdated": "{{resource}}/{{name}} 已更新",
|
||||
"resourceDeleted": "{{kind}} {{name}} 已删除",
|
||||
"containerNameEmpty": "容器名称不能为空",
|
||||
"containerImageEmpty": "容器 {{name}} 的镜像不能为空",
|
||||
"clusterNotFound": "找不到集群 {{code}}",
|
||||
"confirmRollback": "确认回滚到修订版本 #{{revision}}?",
|
||||
"confirmDeleteResource": "确认删除 {{kind}} 「{{name}}」?此操作不可撤销。",
|
||||
"confirmDeleteHpa": "确定删除 HPA \"{{name}}\"?",
|
||||
"confirmRestart": "确认重启 {{kind}} {{name}}?将触发滚动重启。",
|
||||
"confirmDeleteProbe": "确定删除探针「{{name}}」?",
|
||||
"confirmDeleteMonitor": "确认删除 \"{{name}}\"?",
|
||||
"confirmDeleteTask": "确定删除「{{name}}」吗?"
|
||||
}
|
||||
},
|
||||
"monitor": {
|
||||
|
||||
Reference in new issue
Block a user