From 1c5e410881ed4c54b5d4408c7289ff52653b854a Mon Sep 17 00:00:00 2001 From: Aqr-K <95741669+Aqr-K@users.noreply.github.com> Date: Tue, 20 May 2025 19:14:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(i18n):=20=E4=BF=AE=E5=A4=8D=E9=9D=9E?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=B0=E5=8C=BA=E8=BE=93=E5=87=BAnull?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=9A=84=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 0953566c..9f848143 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -39,7 +39,7 @@ export function getBrowserLocale(): SupportedLocale | null { return navigatorLocale.includes(locale.split('-')[0]) }) - return (locale as SupportedLocale) || null + return (locale as SupportedLocale) || zh-CN } /**