From 3b97001dd83b6b7d60917d5ffe14e42d94c4df0f Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Sun, 12 May 2024 12:01:41 +0800 Subject: [PATCH] update --- src/locale/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/index.ts b/src/locale/index.ts index 68349ce..837270d 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -6,7 +6,7 @@ export const LOCALE_OPTIONS = [ { label: '中文', value: 'zh-CN' }, { label: 'English', value: 'en-US' }, ]; -const defaultLocale = localStorage.getItem('arco-locale') || 'zh-CN'; +const defaultLocale = localStorage.getItem('arco-locale') || navigator.language || 'en-US'; const i18n = createI18n({ locale: defaultLocale,