feat(i18n): 剩余模块全量国际化 — 51% 覆盖率 (231 文件接入 t())

批量转换 163 个文件,3204 处中文替换为 t() 调用:
- Monitor: 日志中心/告警中心/数据源/大屏/站点拨测/SNMP/中间件 全部转换
- Kubernetes: ResourceVisualEditor/NamespaceResourcePage/拓扑/事件 全部转换
- Deploy: 流水线/发布/凭证/RBAC 全部转换
- Server/Cloud/Agent/Task/Layout/UI: 全部转换
- 翻译词典扩展至 6474 行 (22 namespaces, 5000+ keys)
- tsc 编译零错误
This commit is contained in:
attacker committed 2026-07-03 01:51:57 +08:00
1 parent 78c27037e3
commit ecec73989b
166 files changed
+6925 -2800

No files matched your search

@@ -13,6 +13,7 @@ import {
import { ChartToolbar } from './ChartToolbar';
import { MonitorChartTooltip } from '../shared/monitorChartTheme';
import { ChartRangeHint } from '../shared/ChartRangeHint';
import { useTranslation } from 'react-i18next';
export interface ChartSeries {
dataKey: string;
@@ -88,6 +89,7 @@ function ChartBody({
compact?: boolean;
referenceLines?: ChartReferenceLine[];
}) {
const { t } = useTranslation();
return (
<div style={{ height }} className="select-none w-full min-h-0">
<ResponsiveContainer width="100%" height="100%">
@@ -191,6 +193,7 @@ export const ZoomableAreaChart = forwardRef<ZoomableChartHandle, Props>(function
onZoomedChange,
referenceLines,
}, ref) {
const { t } = useTranslation();
const uid = useId().replace(/:/g, '');
const gradPrefix = `grad-${chartId}-${uid}`;
@@ -314,11 +317,11 @@ export const ZoomableAreaChart = forwardRef<ZoomableChartHandle, Props>(function
<DialogContent className={dialogClass}>
<DialogHeader className="shrink-0 flex-row items-start justify-between gap-4 space-y-0 pr-10">
<div className="min-w-0">
<DialogTitle className="text-base truncate">{title || '指标详情'}</DialogTitle>
<DialogTitle className="text-base truncate">{title || t('monitor.zoomableareachart.sdaf533')}</DialogTitle>
{subtitle && (
<p className="text-xs dg-text-muted mt-0.5 truncate">{subtitle}</p>
)}
<DialogDescription className="sr-only">放大查看监控指标趋势</DialogDescription>
<DialogDescription className="sr-only">{t('monitor.zoomableareachart.s365f8f')}</DialogDescription>
</div>
<ChartToolbar
size="md"