feat: 国际化
This commit is contained in:
parent
9e41d2e6a3
commit
9464ed25f2
@ -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
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
@ -114,6 +114,7 @@
|
||||
"apple": "苹果支付",
|
||||
"confirm": "确认",
|
||||
"cancel": "取消",
|
||||
"confirmLoading": "正在购买..."
|
||||
"confirmLoading": "正在购买...",
|
||||
"againError": "您已购买过该权益,无需重复购买"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user