Skip to content

Commit 121d88a

Browse files
committed
refactor: ♻️ (i18n)简化语言配置对象
- 移除 zh-cn 和 en 对象中的展开操作符
1 parent 39f9676 commit 121d88a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/lang/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ import zhCnLocale from "./package/zh-cn.json";
88
const appStore = useAppStoreHook();
99

1010
const messages = {
11-
"zh-cn": {
12-
...zhCnLocale,
13-
},
14-
en: {
15-
...enLocale,
16-
},
11+
"zh-cn": zhCnLocale,
12+
en: enLocale,
1713
};
1814

1915
const i18n = createI18n({

0 commit comments

Comments
 (0)