fix(i18n): 回退到稳定的 32% 覆盖率状态 (tsc + Vite 构建通过)

批量转换脚本引入的语法错误已回退,保留稳定的 i18n 转换:
- 翻译词典: 22 namespaces, 3600+ keys
- 已接入: 145+ 文件 (Dashboard/Login/K8s 主页面/Monitor/System/Deploy)
- 语言切换器在 Header 中可用 (🇨🇳/🇺🇸)
- tsc 零错误, Vite 构建成功
This commit is contained in:
attacker committed 2026-07-03 02:02:29 +08:00
1 parent ecec73989b
commit 72bfb0e12d
191 files changed
+5057 -7592

No files matched your search

@@ -13,7 +13,6 @@ 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;
@@ -89,7 +88,6 @@ 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%">
@@ -193,7 +191,6 @@ export const ZoomableAreaChart = forwardRef<ZoomableChartHandle, Props>(function
onZoomedChange,
referenceLines,
}, ref) {
const { t } = useTranslation();
const uid = useId().replace(/:/g, '');
const gradPrefix = `grad-${chartId}-${uid}`;
@@ -317,11 +314,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 || t('monitor.zoomableareachart.sdaf533')}</DialogTitle>
<DialogTitle className="text-base truncate">{title || '指标详情'}</DialogTitle>
{subtitle && (
<p className="text-xs dg-text-muted mt-0.5 truncate">{subtitle}</p>
)}
<DialogDescription className="sr-only">{t('monitor.zoomableareachart.s365f8f')}</DialogDescription>
<DialogDescription className="sr-only">放大查看监控指标趋势</DialogDescription>
</div>
<ChartToolbar
size="md"