feat(i18n): CredFormDialog + ClusterComparePage 全量国际化 — 75 新增翻译键

- CredFormDialog.tsx: 凭据表单弹框全量迁移 (deploy.cred.form.* 37 键)
  SSH/Docker/TLS/AKSK/Database/API/Generic 7 种类型表单字段全覆盖
- ClusterComparePage.tsx: 多集群对比看板全量迁移 (k8s.compare.* 35 键)
  图表标签/表头/状态/空状态/标题全部国际化
- 新增 common.username/password/port 3 个通用键
- 翻译键总数 6182 → 6257 (zh-CN/en-US 完全对齐)
- tsc -b=0, npm build=✅ (20.76s), ESLint=0, 17/17 集成测试通过
This commit is contained in:
attacker committed 2026-07-03 21:32:56 +08:00
1 parent 88122a72a2
commit 777d9e4e71
4 files changed
+257 -95

No files matched your search

+81 -2
View File
@@ -519,7 +519,10 @@
"yesterday": "Yesterday",
"zone": "Zone",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out"
"zoomOut": "Zoom Out",
"username": "Username",
"password": "Password",
"port": "Port"
},
"menu": {
"dashboard": "Dashboard",
@@ -1412,7 +1415,46 @@
"selectDockerPwd": "Select Docker password credential",
"selectApiCred": "Select credential (API/password etc.)",
"selectCred": "Select credential",
"linkedCred": "Linked Credential"
"linkedCred": "Linked Credential",
"form": {
"editTitle": "Edit Credential",
"newTitle": "Add Credential",
"basicInfo": "Basic Information",
"credNamePlaceholder": "e.g. Production SSH",
"varAlias": "Variable Alias",
"varAliasPlaceholder": "e.g. MYSQL_PROD",
"tagsPlaceholder": "production, aliyun",
"descPlaceholder": "Optional remarks",
"typeConfig": "Configuration",
"editHint": "(only fill fields you want to change)",
"sshUser": "SSH User",
"sshPort": "SSH Port",
"sshPassword": "SSH Password",
"sshPwdPlaceholder": "Password (or leave empty to use key)",
"privateKey": "Private Key",
"privateKeyPlaceholder": "Paste SSH private key...",
"publicKey": "Public Key",
"publicKeyPlaceholder": "Paste SSH public key...",
"registryAddr": "Registry Address",
"registryPwdPlaceholder": "Registry password",
"certPem": "Certificate (PEM)",
"keyPem": "Private Key (PEM)",
"caCert": "CA Certificate",
"caCertPlaceholder": "CA certificate content...",
"dbType": "Database Type",
"host": "Host",
"dbName": "Database Name",
"dbPwdPlaceholder": "Database password",
"apiEndpoint": "API Endpoint",
"apiKeyToken": "API Key / Token",
"secretValuePlaceholder": "Secret value",
"saving": "Saving...",
"nameRequired": "Please enter credential name",
"updated": "Updated",
"created": "Created",
"operationFailed": "Operation failed",
"tagsLabel": "Tags"
}
},
"release": {
"title": "Application Release",
@@ -2312,6 +2354,43 @@
"decreaseReplica": "Decrease replicas",
"increaseReplica": "Increase replicas",
"noPod": "No Pods"
},
"compare": {
"title": "Multi-Cluster Resource Comparison",
"subtitle": "Cross-cluster resource usage, node distribution, health status comparison",
"clusterList": "Cluster List",
"noData": "No cluster data. Please add a Kubernetes cluster and sync first.",
"goAddCluster": "Add Cluster",
"resourceCompare": "Resource Count Comparison",
"usageCompare": "CPU / Memory Usage Comparison",
"radarCompare": "Resource Radar Comparison",
"nodeRoleDist": "Node Role Distribution",
"noNodeRoleData": "No node role data",
"detailCompare": "Detailed Comparison",
"clickRowHint": "Click a row to view cluster overview",
"loadFailed": "Failed to load",
"neverSynced": "Never synced",
"statusHealthy": "✓ Healthy",
"statusWarning": "⚠ Warning",
"statusError": "✗ Error",
"chartNodes": "Nodes",
"chartPods": "Pods",
"chartDeploy": "Deployments",
"chartCpuUsage": "CPU Usage",
"chartMemUsage": "Memory Usage",
"chartCpuCores": "CPU Cores",
"cpuPercent": "CPU %",
"memPercent": "Memory %",
"colCluster": "Cluster",
"colNodes": "Nodes",
"colCpuCores": "CPU Cores",
"colMemory": "Memory",
"colCpuUsage": "CPU Usage",
"colMemUsage": "Memory Usage",
"colRole": "Role",
"colSyncTime": "Sync Time",
"statCluster": "Clusters",
"statNodes": "Nodes"
}
},
"monitor": {
+81 -2
View File
@@ -519,7 +519,10 @@
"yesterday": "昨天",
"zone": "可用区",
"zoomIn": "放大",
"zoomOut": "缩小"
"zoomOut": "缩小",
"username": "用户名",
"password": "密码",
"port": "端口"
},
"menu": {
"dashboard": "仪表盘",
@@ -1412,7 +1415,46 @@
"selectDockerPwd": "选择 Docker 密码凭据",
"selectApiCred": "选择凭据(API/密码等)",
"selectCred": "选择凭证",
"linkedCred": "关联凭证"
"linkedCred": "关联凭证",
"form": {
"editTitle": "编辑凭据",
"newTitle": "新增凭据",
"basicInfo": "基本信息",
"credNamePlaceholder": "如:生产环境 SSH",
"varAlias": "变量别名",
"varAliasPlaceholder": "如:MYSQL_PROD",
"tagsPlaceholder": "生产环境, 阿里云",
"descPlaceholder": "可选备注信息",
"typeConfig": "配置",
"editHint": "(仅填写需要修改的字段)",
"sshUser": "SSH 用户",
"sshPort": "SSH 端口",
"sshPassword": "SSH 密码",
"sshPwdPlaceholder": "密码(或留空用密钥)",
"privateKey": "私钥内容",
"privateKeyPlaceholder": "粘贴 SSH 私钥...",
"publicKey": "公钥内容",
"publicKeyPlaceholder": "粘贴 SSH 公钥...",
"registryAddr": "Registry 地址",
"registryPwdPlaceholder": "Registry 密码",
"certPem": "证书 (PEM)",
"keyPem": "私钥 (PEM)",
"caCert": "CA 证书",
"caCertPlaceholder": "CA 证书内容...",
"dbType": "数据库类型",
"host": "主机",
"dbName": "数据库名",
"dbPwdPlaceholder": "数据库密码",
"apiEndpoint": "API 端点",
"apiKeyToken": "API Key / Token",
"secretValuePlaceholder": "密钥值",
"saving": "保存中...",
"nameRequired": "请填写凭据名称",
"updated": "已更新",
"created": "已创建",
"operationFailed": "操作失败",
"tagsLabel": "标签"
}
},
"release": {
"title": "应用发布",
@@ -2312,6 +2354,43 @@
"decreaseReplica": "减少副本",
"increaseReplica": "增加副本",
"noPod": "暂无 Pod"
},
"compare": {
"title": "多集群资源对比看板",
"subtitle": "跨集群资源用量、节点分布、健康状态对比",
"clusterList": "集群列表",
"noData": "暂无集群数据,请先添加 Kubernetes 集群并同步",
"goAddCluster": "去添加集群",
"resourceCompare": "资源数量对比",
"usageCompare": "CPU / 内存使用率对比",
"radarCompare": "资源雷达对比",
"nodeRoleDist": "节点角色分布",
"noNodeRoleData": "无节点角色数据",
"detailCompare": "详细对比",
"clickRowHint": "点击行可进入集群概览",
"loadFailed": "加载失败",
"neverSynced": "从未同步",
"statusHealthy": "✓ 健康",
"statusWarning": "⚠ 警告",
"statusError": "✗ 异常",
"chartNodes": "节点",
"chartPods": "Pod数",
"chartDeploy": "部署数",
"chartCpuUsage": "CPU使用",
"chartMemUsage": "内存使用",
"chartCpuCores": "CPU核数",
"cpuPercent": "CPU %",
"memPercent": "内存 %",
"colCluster": "集群",
"colNodes": "节点",
"colCpuCores": "CPU 核数",
"colMemory": "内存",
"colCpuUsage": "CPU 使用率",
"colMemUsage": "内存使用率",
"colRole": "角色",
"colSyncTime": "同步时间",
"statCluster": "集群",
"statNodes": "节点"
}
},
"monitor": {