Skip to content

Commit

Permalink
fix(locales): fix that vscode extension i18n-Ally detect zh-CN as zh (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
spking11 committed Aug 8, 2021
1 parent 1bb5156 commit b2d49cb
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/locales/lang/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2d49cb

Please sign in to comment.