From bab1df2c78509896d00e09e7133bccab44121173 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 12 Jul 2026 17:37:25 +0800 Subject: [PATCH] chore(i18n): add permanent VIP label and handle permanent VIP case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为国际化多语言添加永久VIP的翻译文本,同时在激活成功弹窗中处理永久会员的过期日期显示逻辑,当过期时间为-1时显示永久而非固定日期 --- .../src/components/vip-button/vip-modal-content.vue | 2 +- packages/ui/certd-client/src/locales/langs/en-US/vip.ts | 1 + packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue b/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue index bffffc9ca..8486025ae 100644 --- a/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue +++ b/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue @@ -139,7 +139,7 @@ async function doActive() { title: t("vip.successTitle"), content: t("vip.successContent", { 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() { if (!(settingStore.installInfo.bindUserId > 0)) { diff --git a/packages/ui/certd-client/src/locales/langs/en-US/vip.ts b/packages/ui/certd-client/src/locales/langs/en-US/vip.ts index cb4935359..02eacd676 100644 --- a/packages/ui/certd-client/src/locales/langs/en-US/vip.ts +++ b/packages/ui/certd-client/src/locales/langs/en-US/vip.ts @@ -104,4 +104,5 @@ export default { not_effective: "Not effective or duration not sync?", learn_more: "More privileges", question: "More VIP related questions", + permanent: "Permanent", }; diff --git a/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts b/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts index 59f28c87b..9a686ede1 100644 --- a/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts +++ b/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts @@ -103,4 +103,5 @@ export default { not_effective: "VIP没有生效/时长未同步?", learn_more: "更多特权(加VIP群等)", question: "更多VIP相关问题", + permanent: "永久", };