refactor: ♻️ (i18n)简化语言配置对象
- 移除 zh-cn 和 en 对象中的展开操作符
This commit is contained in:
@@ -8,12 +8,8 @@ import zhCnLocale from "./package/zh-cn.json";
|
||||
const appStore = useAppStoreHook();
|
||||
|
||||
const messages = {
|
||||
"zh-cn": {
|
||||
...zhCnLocale,
|
||||
},
|
||||
en: {
|
||||
...enLocale,
|
||||
},
|
||||
"zh-cn": zhCnLocale,
|
||||
en: enLocale,
|
||||
};
|
||||
|
||||
const i18n = createI18n({
|
||||
|
||||
Reference in New Issue
Block a user