feat: 国际化

This commit is contained in:
jinyaqiu 2025-07-28 20:08:25 +08:00
parent 9e41d2e6a3
commit 9464ed25f2
3 changed files with 6 additions and 3 deletions

View File

@ -116,6 +116,7 @@ export default function Rights() {
// 初始化获取产品项
useEffect(() => {
console.log('subscriptions', subscriptions);
setLoading(true);
getPAy().then(({ bestValue, payInfo }) => {
setPayType(bestValue?.product_code)
@ -134,7 +135,7 @@ export default function Rights() {
if (historyIds?.includes(payType)) {
setConfirmLoading(false);
setTimeout(() => {
alert("您已购买过该权益,无需重复购买");
alert(t('personal:rights.againError'));
}, 0);
return
}

View File

@ -114,6 +114,7 @@
"apple": "Apple Pay",
"confirm": "Confirm",
"cancel": "Cancel",
"confirmLoading": "Confirming..."
"confirmLoading": "Confirming...",
"againError": "You have already purchased this benefit, no need to purchase again"
}
}

View File

@ -114,6 +114,7 @@
"apple": "苹果支付",
"confirm": "确认",
"cancel": "取消",
"confirmLoading": "正在购买..."
"confirmLoading": "正在购买...",
"againError": "您已购买过该权益,无需重复购买"
}
}