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 from 'react';
|
||||
import { Card, Avatar, Progress } from '@/components/ui';
|
||||
import { renderQuota } from '../../helpers';
|
||||
@@ -71,7 +73,11 @@ const UserRanking = ({ data, title, icon, t }) => {
|
||||
<span className='text-brand'>{icon}</span>
|
||||
<span className='font-semibold'>{title}</span>
|
||||
<span className='text-xs text-gray-400 ml-2'>
|
||||
{t('共')} {data.length} {t('人')}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='共 {{length}} 人'
|
||||
values={{ length: data.length }}
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
@@ -120,7 +126,10 @@ const UserRanking = ({ data, title, icon, t }) => {
|
||||
<span>
|
||||
{item.requests?.toLocaleString()} {t('次请求')}
|
||||
</span>
|
||||
<span>{(item.tokens || 0).toLocaleString()} tokens</span>
|
||||
<span>
|
||||
{(item.tokens || 0).toLocaleString()}{' '}
|
||||
{I18N_TECHNICAL_TEXT.TOKENS}
|
||||
</span>
|
||||
</div>
|
||||
<div className='flex justify-between text-xs mt-1'>
|
||||
<span className='text-gray-500'>{t('余额')}:</span>
|
||||
|
||||
Reference in New Issue
Block a user