初始化 ui.

This commit is contained in:
lijiahang
2023-07-27 18:48:15 +08:00
parent ee53ec6486
commit 5be2c7fda2
185 changed files with 1107 additions and 17815 deletions

View File

@@ -1,12 +1,8 @@
import { createI18n } from 'vue-i18n';
import en from './en-US';
import cn from './zh-CN';
export const LOCALE_OPTIONS = [
{ label: '中文', value: 'zh-CN' },
{ label: 'English', value: 'en-US' },
];
const defaultLocale = localStorage.getItem('arco-locale') || 'zh-CN';
export const LOCALE_OPTIONS = [{ label: '中文', value: 'zh-CN' }];
const defaultLocale = localStorage.getItem('locale') || 'zh-CN';
const i18n = createI18n({
locale: defaultLocale,
@@ -14,7 +10,6 @@ const i18n = createI18n({
legacy: false,
allowComposition: true,
messages: {
'en-US': en,
'zh-CN': cn,
},
});