fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
@@ -17,6 +17,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Trans } from 'react-i18next';
|
||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||
import React, { useMemo } from 'react';
|
||||
import { Button, Skeleton, Tooltip } from '@/components/ui';
|
||||
import { useActualTheme } from '../../context/Theme';
|
||||
@@ -241,7 +243,9 @@ export const QualityKpiCards = ({ summary, loading, onDrillOutcome, t }) => {
|
||||
color: toneColor('tertiary'),
|
||||
foot: (
|
||||
<>
|
||||
<span>P50 {fmtMs(cur.p50_ms)}</span>
|
||||
<span>
|
||||
{I18N_TECHNICAL_TEXT.P50} {fmtMs(cur.p50_ms)}
|
||||
</span>
|
||||
<span>
|
||||
{t('平均')} {fmtMs(cur.avg_ms)}
|
||||
</span>
|
||||
@@ -401,14 +405,18 @@ export const QualityTrendChart = ({ trend, loading, onZoom, t }) => {
|
||||
<Activity size={16} />
|
||||
{t('调用结局趋势')}
|
||||
<span className='quality-card-sub'>
|
||||
{t('粒度')}{' '}
|
||||
{gran >= 86400
|
||||
? t('1 天')
|
||||
: gran >= 3600
|
||||
? t('1 小时')
|
||||
: t('5 分钟')}
|
||||
{' · '}
|
||||
{t('点击柱子放大到该时段')}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='粒度 {{value}} · 点击柱子放大到该时段'
|
||||
values={{
|
||||
value:
|
||||
gran >= 86400
|
||||
? t('1 天')
|
||||
: gran >= 3600
|
||||
? t('1 小时')
|
||||
: t('5 分钟'),
|
||||
}}
|
||||
/>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user