chore(i18n): add permanent VIP label and handle permanent VIP case

为国际化多语言添加永久VIP的翻译文本,同时在激活成功弹窗中处理永久会员的过期日期显示逻辑,当过期时间为-1时显示永久而非固定日期
This commit is contained in:
xiaojunnuo
2026-07-12 17:37:25 +08:00
parent 00eabec771
commit bab1df2c78
3 changed files with 3 additions and 1 deletions
@@ -139,7 +139,7 @@ async function doActive() {
title: t("vip.successTitle"), title: t("vip.successTitle"),
content: t("vip.successContent", { content: t("vip.successContent", {
vipLabel, vipLabel,
expireDate: dayjs(settingStore.plusInfo.expireTime).format("YYYY-MM-DD"), expireDate: settingStore.plusInfo.expireTime === -1 ? t("vip.permanent") : dayjs(settingStore.plusInfo.expireTime).format("YYYY-MM-DD"),
}), }),
onOk() { onOk() {
if (!(settingStore.installInfo.bindUserId > 0)) { if (!(settingStore.installInfo.bindUserId > 0)) {
@@ -104,4 +104,5 @@ export default {
not_effective: "Not effective or duration not sync?", not_effective: "Not effective or duration not sync?",
learn_more: "More privileges", learn_more: "More privileges",
question: "More VIP related questions", question: "More VIP related questions",
permanent: "Permanent",
}; };
@@ -103,4 +103,5 @@ export default {
not_effective: "VIP没有生效/时长未同步?", not_effective: "VIP没有生效/时长未同步?",
learn_more: "更多特权(加VIP群等)", learn_more: "更多特权(加VIP群等)",
question: "更多VIP相关问题", question: "更多VIP相关问题",
permanent: "永久",
}; };