fix(i18n): 补齐九种语言的翻译并修复国际化检查
补齐页面缺译,统一动态文案的整句插值方式。
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 { Trans } from 'react-i18next';
|
||||
import { useEffectEvent } from '../../../../hooks/common/useEffectEvent';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Modal, Table, Tag, Spin } from '@/components/ui';
|
||||
@@ -140,8 +141,14 @@ const InvitedUsersModal = ({ visible, onCancel, user, t }) => {
|
||||
<span>{t('邀请的用户')}</span>
|
||||
{user && (
|
||||
<span className='ml-2 text-gray-500 text-sm'>
|
||||
{user.display_name || user.username} {t('邀请了')} {total}{' '}
|
||||
{t('位用户')}
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='{{value}} 邀请了 {{total}} 位用户'
|
||||
values={{
|
||||
value: user.display_name || user.username,
|
||||
total: total,
|
||||
}}
|
||||
/>
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user