fix(i18n): 补齐九种语言的翻译并修复国际化检查
补齐页面缺译,统一动态文案的整句插值方式。
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 {
|
||||
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) => (
|
||||
|
||||
Reference in New Issue
Block a user