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 appStore = useAppStoreHook();
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
"zh-cn": {
|
"zh-cn": zhCnLocale,
|
||||||
...zhCnLocale,
|
en: enLocale,
|
||||||
},
|
|
||||||
en: {
|
|
||||||
...enLocale,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
|
|||||||
Reference in New Issue
Block a user