fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
@@ -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 { RefreshCw as ActionRefreshCw } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useEffect, useCallback } from 'react';
|
||||
import {
|
||||
@@ -329,7 +330,8 @@ const GroupMonitorAdmin = () => {
|
||||
}}
|
||||
>
|
||||
<Zap className='w-3 h-3 inline mr-1' />
|
||||
{time}ms
|
||||
{time}
|
||||
{I18N_TECHNICAL_TEXT.MILLISECONDS}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
@@ -666,7 +668,9 @@ const GroupMonitorAdmin = () => {
|
||||
<div className='text-center'>
|
||||
<div className='text-2xl font-bold text-blue-500'>
|
||||
{group.avg_response_time || '-'}
|
||||
<span className='text-sm font-normal'>ms</span>
|
||||
<span className='text-sm font-normal'>
|
||||
{I18N_TECHNICAL_TEXT.MILLISECONDS}
|
||||
</span>
|
||||
</div>
|
||||
<div className='text-xs text-gray-500'>
|
||||
{t('平均响应')}
|
||||
@@ -734,7 +738,8 @@ const GroupMonitorAdmin = () => {
|
||||
</div>
|
||||
<div className='stat-box'>
|
||||
<div className='stat-box-value text-blue-500'>
|
||||
{group.avg_response_time || '-'}ms
|
||||
{group.avg_response_time || '-'}
|
||||
{I18N_TECHNICAL_TEXT.MILLISECONDS}
|
||||
</div>
|
||||
<div className='stat-box-label'>
|
||||
{t('平均响应')}
|
||||
@@ -742,7 +747,8 @@ const GroupMonitorAdmin = () => {
|
||||
</div>
|
||||
<div className='stat-box'>
|
||||
<div className='stat-box-value text-red-500'>
|
||||
{group.max_response_time || '-'}ms
|
||||
{group.max_response_time || '-'}
|
||||
{I18N_TECHNICAL_TEXT.MILLISECONDS}
|
||||
</div>
|
||||
<div className='stat-box-label'>
|
||||
{t('最慢响应')}
|
||||
@@ -750,7 +756,8 @@ const GroupMonitorAdmin = () => {
|
||||
</div>
|
||||
<div className='stat-box'>
|
||||
<div className='stat-box-value text-green-500'>
|
||||
{group.min_response_time || '-'}ms
|
||||
{group.min_response_time || '-'}
|
||||
{I18N_TECHNICAL_TEXT.MILLISECONDS}
|
||||
</div>
|
||||
<div className='stat-box-label'>
|
||||
{t('最快响应')}
|
||||
@@ -791,7 +798,7 @@ const GroupMonitorAdmin = () => {
|
||||
handleDateRangeChange(group.name, [start, now]);
|
||||
}}
|
||||
>
|
||||
24h
|
||||
{I18N_TECHNICAL_TEXT.LAST_24_HOURS}
|
||||
</Button>
|
||||
<Button
|
||||
size='small'
|
||||
@@ -803,7 +810,7 @@ const GroupMonitorAdmin = () => {
|
||||
handleDateRangeChange(group.name, [start, now]);
|
||||
}}
|
||||
>
|
||||
7d
|
||||
{I18N_TECHNICAL_TEXT.LAST_7_DAYS}
|
||||
</Button>
|
||||
<Button
|
||||
size='small'
|
||||
@@ -815,7 +822,7 @@ const GroupMonitorAdmin = () => {
|
||||
handleDateRangeChange(group.name, [start, now]);
|
||||
}}
|
||||
>
|
||||
30d
|
||||
{I18N_TECHNICAL_TEXT.LAST_30_DAYS}
|
||||
</Button>
|
||||
</Space>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user