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 {
|
||||
Eye as ActionEye,
|
||||
Check as ActionCheck,
|
||||
@@ -256,7 +257,9 @@ const AdminInvoice = () => {
|
||||
return (
|
||||
displayName ||
|
||||
username || (
|
||||
<span className='text-gray-400'>User#{record.user_id}</span>
|
||||
<span className='text-gray-400'>
|
||||
{t('用户 #{{id}}', { id: record.user_id })}
|
||||
</span>
|
||||
)
|
||||
);
|
||||
},
|
||||
@@ -574,12 +577,16 @@ const AdminInvoice = () => {
|
||||
{detailData.topup_list && detailData.topup_list.length > 0 && (
|
||||
<div>
|
||||
<Text className='text-sm text-gray-500 mb-2 block'>
|
||||
{t('关联充值记录')} ({detailData.topup_list.length} {t('笔')}
|
||||
,{t('合计')} ¥
|
||||
{detailData.topup_list
|
||||
.reduce((s, item) => s + (item.money || 0), 0)
|
||||
.toFixed(2)}
|
||||
)
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey='关联充值记录 ({{length}} 笔,合计 ¥{{value}})'
|
||||
values={{
|
||||
length: detailData.topup_list.length,
|
||||
value: detailData.topup_list
|
||||
.reduce((s, item) => s + (item.money || 0), 0)
|
||||
.toFixed(2),
|
||||
}}
|
||||
/>
|
||||
</Text>
|
||||
<Table
|
||||
dataSource={detailData.topup_list}
|
||||
|
||||
Reference in New Issue
Block a user