feat(i18n): 全量中英文国际化改造

- 翻译 en-US.json 中 1006 条未翻译的中文条目为英文
- 提取 30+ 组件文件的硬编码中文到 locale JSON
- 新增 900+ 翻译键覆盖所有业务模块:
  - Layout (Sidebar, Header, Breadcrumb)
  - Server (ServerForm, CloudServerImport, WebShell, RdpTools)
  - Deploy (ReleaseManager, PipelineCreate, AppRelease)
  - Kubernetes (DeploymentEdit, PodExec, PodLogs, ResourceEditor)
  - Monitor (UnifiedQueryPanel, AlertCenter, Prometheus/Grafana Dashboard)
  - AIOps (predictUtils, PredictiveCostTab, AIPredictive)
  - System (useLdapManagement, AgentMonitor, AgentWizard)
- tsc --noEmit 类型检查通过
This commit is contained in:
attacker committed 2026-07-04 03:42:27 +08:00
1 parent 76ec9387f0
commit a9513c2056
44 files changed
+4342 -1792

No files matched your search

@@ -343,16 +343,16 @@ export function ResourceUsageCard({
<div className="flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-[var(--dg-bg-tertiary)] border border-[var(--dg-border)]">
<Cpu className="h-3.5 w-3.5 text-[var(--dg-blue)]" />
<span className="text-[var(--dg-text-secondary)]">CPU</span>
<span className="font-medium text-[var(--dg-text-primary)]">{totalCpu} 核</span>
<span className="font-medium text-[var(--dg-text-primary)]">{totalCpu} {t('dashboard.resourceUsage.cores')}</span>
</div>
<div className="flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-[var(--dg-bg-tertiary)] border border-[var(--dg-border)]">
<MemoryStick className="h-3.5 w-3.5 text-[var(--dg-green)]" />
<span className="text-[var(--dg-text-secondary)]">内存</span>
<span className="text-[var(--dg-text-secondary)]">{t('dashboard.resourceUsage.memory')}</span>
<span className="font-medium text-[var(--dg-text-primary)]">{usedMemory} / {totalMemory} GB</span>
</div>
<div className="flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-[var(--dg-bg-tertiary)] border border-[var(--dg-border)]">
<HardDrive className="h-3.5 w-3.5 text-[var(--dg-purple)]" />
<span className="text-[var(--dg-text-secondary)]">磁盘</span>
<span className="text-[var(--dg-text-secondary)]">{t('dashboard.resourceUsage.disk')}</span>
<span className="font-medium text-[var(--dg-text-primary)]">{usedDisk} / {totalDisk} GB</span>
</div>
</div>