Bläddra i källkod

fix: fixed moment locale config

修复moment的英文语言配置
无木 3 år sedan
förälder
incheckning
27207a78ca
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/locales/lang/en.ts

+ 3 - 3
src/locales/lang/en.ts

@@ -1,6 +1,6 @@
 import { genMessage } from '../helper';
 import antdLocale from 'ant-design-vue/es/locale/en_US';
-import momentLocale from 'moment/dist/locale/eu';
+// import momentLocale from 'moment/dist/locale/en-us';
 
 const modules = import.meta.globEager('./en/**/*.ts');
 export default {
@@ -8,6 +8,6 @@ export default {
     ...genMessage(modules, 'en'),
     antdLocale,
   },
-  momentLocale,
-  momentLocaleName: 'eu',
+  momentLocale: null,
+  momentLocaleName: 'en',
 };