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

补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
zhanjunhao
2026-11-17 14:10:25 +08:00
parent 936ece78ff
commit ac9bbfd472
146 changed files with 16591 additions and 11007 deletions
+11 -2
View File
@@ -16,6 +16,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 {
Zap as ActionZap,
UserPlus as ActionUserPlus,
@@ -531,7 +532,11 @@ const Invite = () => {
)}
{remainingDays > 0 && (
<span className='ml-2 text-amber-600 dark:text-amber-300'>
({t('\u5269\u4f59')} {remainingDays} {t('\u5929')})
<Trans
t={t}
i18nKey='(剩余 {{remainingDays}} 天)'
values={{ remainingDays: remainingDays }}
/>
</span>
)}
</p>
@@ -683,7 +688,11 @@ const Invite = () => {
</div>
<div>
<Typography.Text strong className='block mb-2'>
{t('划转额度')} ({t('最低')} {renderQuota(getQuotaPerUnit())})
<Trans
t={t}
i18nKey='划转额度 (最低 {{value}})'
values={{ value: renderQuota(getQuotaPerUnit()) }}
/>
</Typography.Text>
<QuotaInput
minQuota={getQuotaPerUnit()}
+16 -3
View File
@@ -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 {
Eye as ActionEye,
X as ActionX,
@@ -437,10 +440,16 @@ const Invoice = () => {
{selectedTopupIds.length > 0 && (
<div className='mt-3 p-3 bg-amber-50 dark:bg-amber-900/20 rounded-lg flex items-center justify-between'>
<span className='text-sm text-gray-600 dark:text-gray-300'>
{t('已选择')} {selectedTopupIds.length} {t('条记录')}
<Trans
t={t}
i18nKey='已选择 {{length}} 条记录'
values={{ length: selectedTopupIds.length }}
/>
</span>
<span className='text-lg font-bold text-amber-600 dark:text-amber-400'>
{t('合计')}: ¥{selectedAmount.toFixed(2)}
{t('合计')}
{I18N_TECHNICAL_TEXT.CNY_TOTAL_SEPARATOR}
{selectedAmount.toFixed(2)}
</span>
</div>
)}
@@ -611,7 +620,11 @@ const Invoice = () => {
{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('笔')})
<Trans
t={t}
i18nKey='关联充值记录 ({{length}} 笔)'
values={{ length: detailData.topup_list.length }}
/>
</Text>
<div className='space-y-1'>
{detailData.topup_list.map((topup) => (