refactor(i18n): U38 phantom CTK 清理 — 13 文件 16 处模板字面量/JSX 属性残余中文→i18n.t() 调用
13 文件 16 处 UI-facing phantom CTK (i18n.t() 模板字面量中的中文片段) 全部替换为语义化 i18n.t() 调用: - LogsHeader: '行'suffix→common.lineSuffix - analyzerHelpers: '当前值'→common.currentValue - DeploymentEditStorage: 2 toast description→k8s.editStorage.*Desc (插值) - WorkloadViewPage: 2 toast description→k8s.workloadView.restartSentDesc + k8s.workloads.scaleSuccessDesc (插值) - ServerFileBrowser: confirm→common.confirmDeleteType (插值) - LogDatasourcePage: toast '可达'→aiops.reachable - LogAlertsPanel: confirm→monitor.deleteRuleConfirmDesc (插值) - DeployTargetFields: JSX '(多容器时填写)'→common.fillIfMultiContainer - UserGroupsManager: 3 处 confirm/desc→deploy.rbac.deleteGroupDesc + pipeline.removeMemberDesc + common.memberCount (插值) - BuildNodesManager: JSX '(可选)'→common.optional (已有键复用) - useLdapManagement: confirm→system.ldapMgmt.deleteEntryDesc (插值) 新增 14 语义化翻译键 (5 common + 2 k8s.editStorage + 1 k8s.workloadView + 1 k8s.workloads + 1 aiops + 1 monitor + 1 deploy.rbac + 1 pipeline + 1 system.ldapMgmt), zh/en 7737→7751 +14 对齐 tsc -b=0, npm build✓ (16.86s), ESLint=0/43/any=0, go build=0, 17/17 测试通过
This commit is contained in:
1 parent
7c80e35411
commit
a1d82574a7
14 files changed
+64
-35
No files matched your search
@@ -117,7 +117,7 @@ export function ServerFileBrowser({ open, onOpenChange, serverId, serverName }:
|
||||
};
|
||||
|
||||
const handleDelete = async (filePath: string, isDir: boolean) => {
|
||||
if (!serverId || !confirm(`确认删除 ${isDir ? i18n.t('server.fileBrowser2.directory') : i18n.t('k8s.pods.action.file')} "${filePath}"?`)) return;
|
||||
if (!serverId || !confirm(i18n.t('common.confirmDeleteType', { type: isDir ? i18n.t('server.fileBrowser2.directory') : i18n.t('k8s.pods.action.file'), name: filePath }))) return;
|
||||
try {
|
||||
await serverApi.deleteFile(serverId, filePath);
|
||||
await fetchDir(currentPath);
|
||||
|
||||
Reference in new issue
Block a user