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
+10 -2
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 {
Check as ActionCheck,
ArrowUpRight as ActionArrowUpRight,
@@ -413,8 +414,15 @@ const MembershipPanel = () => {
<div className='rc-plan-empty'>
<Clock size={18} />
<strong>
{t(planTypeConfig[currentPeriod]?.label || currentPeriod)}
{t('套餐')}
<Trans
t={t}
i18nKey='{{label}}套餐'
values={{
label: t(
planTypeConfig[currentPeriod]?.label || currentPeriod,
),
}}
/>
</strong>
<span>{t('价格与权益待补充')}</span>
</div>
+3 -3
View File
@@ -233,9 +233,9 @@ const RechargePanel = ({
return (
<Tooltip
key={method.type}
content={
t('此支付方式最低充值金额为') + ' ' + minTopupVal
}
content={t('此支付方式最低充值金额为 {{minTopupVal}}', {
minTopupVal: minTopupVal,
})}
>
{button}
</Tooltip>
+2 -2
View File
@@ -148,7 +148,7 @@ const Recharge = ({ embedded = false }) => {
showSuccess(t('兑换成功!'));
Modal.success({
title: t('兑换成功!'),
content: t('成功兑换额度:') + renderQuota(data),
content: t('成功兑换额度:{{value}}', { value: renderQuota(data) }),
centered: true,
});
if (userState.user) {
@@ -695,7 +695,7 @@ const Recharge = ({ embedded = false }) => {
if (payWay === 'paypal') {
return payPalQuote ? formatPayPalUSD(payPalQuote.payAmount) : '-';
}
return amount + ' ' + t('元');
return t('{{value}}元', { value: amount + ' ' });
};
const handleCancel = () => {