chenlu
2024-09-06 d809ecd16cbb23f5aad86a6844f51ffea0455fe8
north-glass-erp/northglass-erp/src/lang/index.js
@@ -5,13 +5,13 @@
import ru from "./ru"
let messages = {
    zh:zh,
    en: en,
    'zh-CN':zh,
    'en-US': en,
    ru: ru
}
const i18n = createI18n({
    locale: localStorage.getItem('lang') || 'zh', // 设置当前语言类型
    locale: localStorage.getItem('lang') || 'zh-CN', // 设置当前语言类型
    legacy: false, // 如果要支持compositionAPI,此项必须设置为false;
    globalInjection: true, // 全局注册$t方法
    messages