fix(i18n): 补齐九语翻译并修复国际化检查

补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
zhanjunhao
2026-11-17 14:10:25 +08:00
parent 936ece78ff
commit ac9bbfd472
146 changed files with 16591 additions and 11007 deletions
+15 -6
View File
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
import React, { useState, useEffect } from 'react';
import { Card, Row, Col, Table, Spin } from '@/components/ui';
import {
@@ -315,7 +316,7 @@ const AdminMonitor = () => {
borderRadius: '2px',
}}
/>
<span>Prompt</span>
<span>{I18N_TECHNICAL_TEXT.PROMPT}</span>
</div>
<div style={{ display: 'flex', alignItems: 'center', gap: '4px' }}>
<div
@@ -326,7 +327,7 @@ const AdminMonitor = () => {
borderRadius: '2px',
}}
/>
<span>Completion</span>
<span>{I18N_TECHNICAL_TEXT.COMPLETION}</span>
</div>
</div>
</div>
@@ -409,7 +410,8 @@ const AdminMonitor = () => {
<span>{segment.name}</span>
</div>
<span style={{ fontWeight: 600 }}>
${segment.cost.toFixed(2)} ({segment.percentage}%)
${segment.cost.toFixed(2)} ({segment.percentage}
{I18N_TECHNICAL_TEXT.PERCENT_CLOSE}
</span>
</div>
))}
@@ -662,7 +664,9 @@ const AdminMonitor = () => {
style={{ display: 'flex', alignItems: 'center', gap: '8px' }}
>
<BarChart3 size={18} />
<span>{t('请求趋势')} (24h)</span>
<span>
{t('请求趋势')} {I18N_TECHNICAL_TEXT.LAST_24_HOURS_SUFFIX}
</span>
</div>
}
styles={{ body: { padding: '20px' } }}
@@ -697,7 +701,10 @@ const AdminMonitor = () => {
style={{ display: 'flex', alignItems: 'center', gap: '8px' }}
>
<Activity size={18} />
<span>{t('Token消耗趋势')} (24h)</span>
<span>
{t('Token消耗趋势')}{' '}
{I18N_TECHNICAL_TEXT.LAST_24_HOURS_SUFFIX}
</span>
</div>
}
styles={{ body: { padding: '20px' } }}
@@ -732,7 +739,9 @@ const AdminMonitor = () => {
style={{ display: 'flex', alignItems: 'center', gap: '8px' }}
>
<AlertTriangle size={18} />
<span>{t('错误类型分布')} (24h)</span>
<span>
{t('错误类型分布')} {I18N_TECHNICAL_TEXT.LAST_24_HOURS_SUFFIX}
</span>
</div>
}
styles={{ body: { padding: '20px' } }}