fix(locales): fix that vscode extension i18n-Ally detect zh-CN as zh (#1044)

This commit is contained in:
spking11 2021-08-08 10:16:19 +08:00 committed by GitHub
parent 1bb5156923
commit b2d49cbbf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 2 additions and 2 deletions

View File

@ -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,