feat: 国际化
This commit is contained in:
parent
9e41d2e6a3
commit
9464ed25f2
@ -116,6 +116,7 @@ export default function Rights() {
|
|||||||
|
|
||||||
// 初始化获取产品项
|
// 初始化获取产品项
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
console.log('subscriptions', subscriptions);
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
getPAy().then(({ bestValue, payInfo }) => {
|
getPAy().then(({ bestValue, payInfo }) => {
|
||||||
setPayType(bestValue?.product_code)
|
setPayType(bestValue?.product_code)
|
||||||
@ -134,7 +135,7 @@ export default function Rights() {
|
|||||||
if (historyIds?.includes(payType)) {
|
if (historyIds?.includes(payType)) {
|
||||||
setConfirmLoading(false);
|
setConfirmLoading(false);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
alert("您已购买过该权益,无需重复购买");
|
alert(t('personal:rights.againError'));
|
||||||
}, 0);
|
}, 0);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,6 +114,7 @@
|
|||||||
"apple": "Apple Pay",
|
"apple": "Apple Pay",
|
||||||
"confirm": "Confirm",
|
"confirm": "Confirm",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"confirmLoading": "Confirming..."
|
"confirmLoading": "Confirming...",
|
||||||
|
"againError": "You have already purchased this benefit, no need to purchase again"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,6 +114,7 @@
|
|||||||
"apple": "苹果支付",
|
"apple": "苹果支付",
|
||||||
"confirm": "确认",
|
"confirm": "确认",
|
||||||
"cancel": "取消",
|
"cancel": "取消",
|
||||||
"confirmLoading": "正在购买..."
|
"confirmLoading": "正在购买...",
|
||||||
|
"againError": "您已购买过该权益,无需重复购买"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user