mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-07 20:33:28 +00:00
update
This commit is contained in:
parent
31aa5c33b5
commit
3b97001dd8
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue