From b6b19f628c9a0ff0e2de89998d006470045457ae Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 28 Apr 2025 17:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=9A=E7=A7=BB=E9=99=A4=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E8=AF=AD=E8=A8=80=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E7=AE=80=E5=8C=96=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/i18n.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index dd610e9f..0953566c 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -46,9 +46,6 @@ export function getBrowserLocale(): SupportedLocale | null { * 设置i18n语言环境 */ export async function setI18nLanguage(locale: SupportedLocale) { - // 加载语言文件(如果使用动态导入) - // await loadLocaleMessages(i18n, locale) - // 更新 i18n 实例语言 i18n.global.locale.value = locale as any as any @@ -57,8 +54,6 @@ export async function setI18nLanguage(locale: SupportedLocale) { // 更新 HTML 标签 lang 属性 document.querySelector('html')?.setAttribute('lang', locale) - - return nextTick() } /**