Skip to content

Commit b2d49cb

Browse files
authored
fix(locales): fix that vscode extension i18n-Ally detect zh-CN as zh (#1044)
1 parent 1bb5156 commit b2d49cb

File tree

8 files changed

+2
-2
lines changed

8 files changed

+2
-2
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/locales/lang/zh_CN.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { genMessage } from '../helper';
22
import antdLocale from 'ant-design-vue/es/locale/zh_CN';
33
import momentLocale from 'moment/dist/locale/zh-cn';
44

5-
const modules = import.meta.globEager('./zh_CN/**/*.ts');
5+
const modules = import.meta.globEager('./zh-CN/**/*.ts');
66
export default {
77
message: {
8-
...genMessage(modules, 'zh_CN'),
8+
...genMessage(modules, 'zh-CN'),
99
antdLocale,
1010
},
1111
momentLocale,

0 commit comments

Comments
 (0)