瀏覽代碼

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

spking11 3 年之前
父節點
當前提交
b2d49cbbf8

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


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


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


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


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


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


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


+ 2 - 2
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,