From 27207a78caccb04372e0275c5cee526ec460de0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Fri, 23 Jul 2021 01:02:05 +0800 Subject: [PATCH] fix: fixed moment locale config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复moment的英文语言配置 --- src/locales/lang/en.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 92912852..1afa87db 100644 --- a/src/locales/lang/en.ts +++ b/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', };