Browse Source
fix(locales): fix that vscode extension i18n-Ally detect zh-CN as zh (#1044)
pull/1073/head
spking11
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with
2 additions and
2 deletions
-
src/locales/lang/zh-CN/common.ts
-
src/locales/lang/zh-CN/component.ts
-
src/locales/lang/zh-CN/layout.ts
-
src/locales/lang/zh-CN/routes/basic.ts
-
src/locales/lang/zh-CN/routes/dashboard.ts
-
src/locales/lang/zh-CN/routes/demo.ts
-
src/locales/lang/zh-CN/sys.ts
-
src/locales/lang/zh_CN.ts
|
|
@ -2,10 +2,10 @@ import { genMessage } from '../helper'; |
|
|
import antdLocale from 'ant-design-vue/es/locale/zh_CN'; |
|
|
import antdLocale from 'ant-design-vue/es/locale/zh_CN'; |
|
|
import momentLocale from 'moment/dist/locale/zh-cn'; |
|
|
import momentLocale from 'moment/dist/locale/zh-cn'; |
|
|
|
|
|
|
|
|
const modules = import.meta.globEager('./zh_CN/**/*.ts'); |
|
|
const modules = import.meta.globEager('./zh-CN/**/*.ts'); |
|
|
export default { |
|
|
export default { |
|
|
message: { |
|
|
message: { |
|
|
...genMessage(modules, 'zh_CN'), |
|
|
...genMessage(modules, 'zh-CN'), |
|
|
antdLocale, |
|
|
antdLocale, |
|
|
}, |
|
|
}, |
|
|
momentLocale, |
|
|
momentLocale, |
|
|
|