fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
@@ -16,6 +16,9 @@ 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, Table } from '@/components/ui';
|
||||
import { renderQuota } from '../../helpers';
|
||||
@@ -82,7 +85,7 @@ const UserTopupRanking = ({ data, title, icon, t, embedded = false }) => {
|
||||
{text || `User ${record.user_id}`}
|
||||
</span>
|
||||
<span className='text-xs text-gray-400 truncate'>
|
||||
ID: {record.user_id}
|
||||
{I18N_TECHNICAL_TEXT.ID} {record.user_id}
|
||||
</span>
|
||||
</div>
|
||||
),
|
||||
@@ -132,7 +135,11 @@ const UserTopupRanking = ({ data, title, icon, t, embedded = false }) => {
|
||||
<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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user