Skip to content

Commit

Permalink
refactor(locales): ♻️ 修改翻译目录名称
Browse files Browse the repository at this point in the history
- zh-ch -> zh-CN
  • Loading branch information
jsxiaosi committed Aug 12, 2023
1 parent 031f48e commit 562d79b
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/serverConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"collapseMenu": false,
"sidebarMode": "vertical",
"themeMode": "dark",
"locale": "zh-ch",
"locale": "zh-CN",
"primaryColor": "#409eff",
"greyMode": false,
"colorWeaknessMode":false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<VerticalSidebar />
</el-drawer>
<template v-else>
<VerticalSidebar></VerticalSidebar>
<VerticalSidebar />
</template>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ if (locStoAPP) {

const i18n = createI18n({
legacy: false,
locale: appConfigMode.locale || 'zh-ch',
fallbackLocale: appConfigMode.locale || 'zh-ch',
locale: appConfigMode.locale || 'zh-CN',
fallbackLocale: appConfigMode.locale || 'zh-CN',
messages,
});

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 562d79b

Please sign in to comment.