From 9acd09d8d8bded58be24edc5cb54c4baf2fc14df Mon Sep 17 00:00:00 2001 From: Dream <1012377328@qq.com> Date: Wed, 26 Aug 2026 16:28:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(@vben/playground):=20=E8=A1=A5=E5=85=85=20a?= =?UTF-8?q?ntd=20locale=20=E5=9B=9E=E9=80=80=E5=B9=B6=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E7=B9=81=E4=BD=93=E7=BF=BB=E8=AF=91=E9=94=99=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit loadAntdLocale 为未打包语言包的语言增加 default 分支回退 en-US,避免切换到此类语言时残留上一次的 antd 语言; 「使用者名稱稱」去掉重复的「稱」。 --- playground/src/locales/index.ts | 4 ++++ playground/src/locales/langs/zh-TW/system.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/playground/src/locales/index.ts b/playground/src/locales/index.ts index c0684b65d..88f23ceda 100644 --- a/playground/src/locales/index.ts +++ b/playground/src/locales/index.ts @@ -96,6 +96,10 @@ async function loadAntdLocale(lang: SupportedLanguagesType) { antdLocale.value = twLocale.default; break; } + // 未打包对应语言包的语言回退到 en-US,避免残留上一次的语言 + default: { + antdLocale.value = antdEnLocale; + } } } diff --git a/playground/src/locales/langs/zh-TW/system.json b/playground/src/locales/langs/zh-TW/system.json index 84ae7a729..2c47a8168 100644 --- a/playground/src/locales/langs/zh-TW/system.json +++ b/playground/src/locales/langs/zh-TW/system.json @@ -4,7 +4,7 @@ "title": "使用者管理", "list": "使用者列表", "name": "使用者名稱", - "userName": "使用者名稱稱", + "userName": "使用者名稱", "id": "使用者ID", "dept": "部門", "status": "狀態",