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
parent
commit
b2d49cbbf8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      src/locales/lang/zh-CN/common.ts
  2. 0
      src/locales/lang/zh-CN/component.ts
  3. 0
      src/locales/lang/zh-CN/layout.ts
  4. 0
      src/locales/lang/zh-CN/routes/basic.ts
  5. 0
      src/locales/lang/zh-CN/routes/dashboard.ts
  6. 0
      src/locales/lang/zh-CN/routes/demo.ts
  7. 0
      src/locales/lang/zh-CN/sys.ts
  8. 4
      src/locales/lang/zh_CN.ts

0
src/locales/lang/zh_CN/common.ts → src/locales/lang/zh-CN/common.ts

0
src/locales/lang/zh_CN/component.ts → src/locales/lang/zh-CN/component.ts

0
src/locales/lang/zh_CN/layout.ts → src/locales/lang/zh-CN/layout.ts

0
src/locales/lang/zh_CN/routes/basic.ts → src/locales/lang/zh-CN/routes/basic.ts

0
src/locales/lang/zh_CN/routes/dashboard.ts → src/locales/lang/zh-CN/routes/dashboard.ts

0
src/locales/lang/zh_CN/routes/demo.ts → src/locales/lang/zh-CN/routes/demo.ts

0
src/locales/lang/zh_CN/sys.ts → src/locales/lang/zh-CN/sys.ts

4
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 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 {
message: {
...genMessage(modules, 'zh_CN'),
...genMessage(modules, 'zh-CN'),
antdLocale,
},
momentLocale,

Loading…
Cancel
Save