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

补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
zhanjunhao
2026-11-17 14:10:25 +08:00
parent ef93825c07
commit e7a7541b2b
146 changed files with 16591 additions and 11007 deletions
@@ -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 { Trans } from 'react-i18next';
import React, { useEffect, useRef, useState } from 'react';
import { Modal, Form, Typography, Banner, Spin, Tag } from '@/components/ui';
import { API, showError, renderQuotaWithPrompt } from '../../../../helpers';
@@ -148,19 +149,26 @@ const AdminEditTokenModal = ({
type='info'
description={
<span>
{t('正在以管理员身份编辑')}{' '}
<Text strong>
{token.display_name || token.username || '—'}
</Text>{' '}
(ID: {token.user_id}) {t('的密钥')}
<Tag
color={curStatusMeta.color}
shape='circle'
size='small'
className='!ml-2'
>
{t(curStatusMeta.label)}
</Tag>
<Trans
t={t}
i18nKey='正在以管理员身份编辑 <part0>{{value}}</part0> (ID:{{user_id}}) 的密钥<part1>{{label}}</part1>'
values={{
value: token.display_name || token.username || '—',
user_id: token.user_id,
label: t(curStatusMeta.label),
}}
components={{
part0: <Text strong />,
part1: (
<Tag
color={curStatusMeta.color}
shape='circle'
size='small'
className='!ml-2'
/>
),
}}
/>
</span>
}
closeIcon={null}