Commit b2d49cbbf81cb15e75905deb95bdf7ac4af4e599
Committed by
GitHub
1 parent
1bb51569
fix(locales): fix that vscode extension i18n-Ally detect zh-CN as zh (#1044)
Showing
8 changed files
with
2 additions
and
2 deletions
src/locales/lang/zh_CN/common.ts renamed to src/locales/lang/zh-CN/common.ts
src/locales/lang/zh_CN/component.ts renamed to src/locales/lang/zh-CN/component.ts
src/locales/lang/zh_CN/layout.ts renamed to src/locales/lang/zh-CN/layout.ts
src/locales/lang/zh_CN/routes/basic.ts renamed to src/locales/lang/zh-CN/routes/basic.ts
src/locales/lang/zh_CN/routes/dashboard.ts renamed to src/locales/lang/zh-CN/routes/dashboard.ts
src/locales/lang/zh_CN/routes/demo.ts renamed to src/locales/lang/zh-CN/routes/demo.ts
src/locales/lang/zh_CN/sys.ts renamed to src/locales/lang/zh-CN/sys.ts
src/locales/lang/zh_CN.ts
@@ -2,10 +2,10 @@ import { genMessage } from '../helper'; | @@ -2,10 +2,10 @@ import { genMessage } from '../helper'; | ||
2 | import antdLocale from 'ant-design-vue/es/locale/zh_CN'; | 2 | import antdLocale from 'ant-design-vue/es/locale/zh_CN'; |
3 | import momentLocale from 'moment/dist/locale/zh-cn'; | 3 | import momentLocale from 'moment/dist/locale/zh-cn'; |
4 | 4 | ||
5 | -const modules = import.meta.globEager('./zh_CN/**/*.ts'); | 5 | +const modules = import.meta.globEager('./zh-CN/**/*.ts'); |
6 | export default { | 6 | export default { |
7 | message: { | 7 | message: { |
8 | - ...genMessage(modules, 'zh_CN'), | 8 | + ...genMessage(modules, 'zh-CN'), |
9 | antdLocale, | 9 | antdLocale, |
10 | }, | 10 | }, |
11 | momentLocale, | 11 | momentLocale, |