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
+14 -7
View File
@@ -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}