refactor(i18n): U39 残余 JSX 属性/模板字面量中文清零 — 14 处→0
10 文件修复: - DualLineChart: subtitle 接收/发送→i18n.t(monitor.lbl.receiveSend) - NetworkTab: 5处 unit="个"→t(common.unitCount) - FDUsageCard: subtitle 当前→t(monitor.lbl.currentFDUsage) - NamespaceOverviewPage: subtitle 命名空间概览→i18n.t(k8s.nsOverview.subtitle) - NamespaceManagementPage: subtitle 资源配额→i18n.t(k8s.nsMgmt.quotaSubtitle) - CreateHPADialog: title+text 命名空间→i18n.t(k8s.hpa.targetInfo) - LogFieldSidebar: title 个值→i18n.t(common.fieldValues) - LiveMonitorDialog: title 全屏/退出全屏→t(common.fullscreen/exitFullscreen) - ExecutionHistoryDialog: title 成功/失败→t(task.execHistory.successFail) - LdapSettingsTab: className 成功检查→ldapTestSuccess boolean 状态 新增 11 翻译键 (common.unitCount/fieldValues/exitFullscreen/fullscreen + monitor.lbl.receiveSend/currentFDUsage + k8s.nsOverview.subtitle/nsMgmt.quotaSubtitle/hpa.targetInfo + task.execHistory.successFail), zh/en 7751→7762 对齐 tsc -b=0, npm build✓ (16.94s), ESLint=0/0/any=0, go build=0, 17/17 测试通过
This commit is contained in:
1 parent
a1d82574a7
commit
5205def47f
14 files changed
+67
-29
No files matched your search
@@ -121,7 +121,7 @@ export default function NamespaceManagementPage() {
|
||||
<PageShell
|
||||
variant="list"
|
||||
title={i18n.t('k8s.nsMgmt.title')}
|
||||
subtitle={`${clusterCode} · 资源配额与生命周期管理`}
|
||||
subtitle={i18n.t('k8s.nsMgmt.quotaSubtitle', { code: clusterCode })}
|
||||
icon={<Boxes className="h-5 w-5" />}
|
||||
metrics={!loading ? (
|
||||
<StatStrip
|
||||
|
||||
@@ -68,7 +68,7 @@ export default function NamespaceOverviewPage() {
|
||||
<PageShell
|
||||
variant="default"
|
||||
title={namespace || i18n.t('kubernetes.namespace.title')}
|
||||
subtitle={`${clusterCode} · 命名空间概览`}
|
||||
subtitle={i18n.t('k8s.nsOverview.subtitle', { code: clusterCode })}
|
||||
icon={<Cloud className="h-5 w-5" />}
|
||||
loading={loading}
|
||||
loadingLabel={i18n.t('k8s.nsOverview.loadingStats')}
|
||||
|
||||
@@ -72,8 +72,8 @@ export function CreateHPADialog({ clusterCode, namespace, deploymentName, onCrea
|
||||
</div>
|
||||
<div>
|
||||
<Label className="dg-text-secondary text-sm">{i18n.t("common.target")}</Label>
|
||||
<p className="text-[var(--dg-text-secondary)] text-sm mt-1 bg-[var(--dg-bg-tertiary)] rounded px-3 py-2 truncate" title={`Deployment: ${deploymentName} · 命名空间: ${namespace}`}>
|
||||
Deployment: {deploymentName} · 命名空间: {namespace}
|
||||
<p className="text-[var(--dg-text-secondary)] text-sm mt-1 bg-[var(--dg-bg-tertiary)] rounded px-3 py-2 truncate" title={i18n.t('k8s.hpa.targetInfo', { deploy: deploymentName, ns: namespace })}>
|
||||
{i18n.t('k8s.hpa.targetInfo', { deploy: deploymentName, ns: namespace })}
|
||||
</p>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
|
||||
Reference in new issue
Block a user