From d3b660e9875455a59cd6e1f1320a13a2eab0eb7b Mon Sep 17 00:00:00 2001 From: ScottSut Date: Thu, 29 Oct 2020 14:07:37 +0800 Subject: [PATCH] fix: moment locale issue --- webapp/app/app.tsx | 2 +- webapp/package.json | 1 + webapp/share/app.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/app/app.tsx b/webapp/app/app.tsx index c64facbad..23ada8803 100644 --- a/webapp/app/app.tsx +++ b/webapp/app/app.tsx @@ -33,7 +33,7 @@ import zh_CN from 'antd/es/locale/zh_CN' import LanguageProvider from 'containers/LanguageProvider' import { translationMessages } from './i18n' import moment from 'moment' -import 'moment/src/locale/zh-cn' +import 'moment/dist/locale/zh-cn' moment.locale('zh-cn') import '!file-loader?name=[name].[ext]!./favicon.ico' diff --git a/webapp/package.json b/webapp/package.json index 5b5b91918..da67d0752 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -84,6 +84,7 @@ "lodash": "4.17.19", "memoize-one": "^5.0.0", "minimist": "1.2.3", + "moment": "^2.24.0", "prop-types": "15.6.2", "react": "16.8.6", "react-ace": "^8.1.0", diff --git a/webapp/share/app.tsx b/webapp/share/app.tsx index 435b96510..1b73af66b 100644 --- a/webapp/share/app.tsx +++ b/webapp/share/app.tsx @@ -33,7 +33,7 @@ import zh_CN from 'antd/es/locale/zh_CN' import LanguageProvider from 'app/containers/LanguageProvider' import { translationMessages } from 'app/i18n' import moment from 'moment' -import 'moment/src/locale/zh-cn' +import 'moment/dist/locale/zh-cn' moment.locale('zh-cn') import '!file-loader?name=[name].[ext]!../app/favicon.ico'