Commit 47bde925 authored by JC Brand's avatar JC Brand

Fixes #1052 Moment locale incorrectly set to zh-tw

parent 27378068
...@@ -77317,7 +77317,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ ...@@ -77317,7 +77317,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
} }
function isMomentLocale(locale) { function isMomentLocale(locale) {
return _.isString(locale) && moment.locale(locale) === moment.locale(); return _.includes(moment.locales(), locale);
} }
function isConverseLocale(locale, supported_locales) { function isConverseLocale(locale, supported_locales) {
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
} }
function isMomentLocale (locale) { function isMomentLocale (locale) {
return _.isString(locale) && moment.locale(locale) === moment.locale() ; return _.includes(moment.locales(), locale);
} }
function isConverseLocale (locale, supported_locales) { function isConverseLocale (locale, supported_locales) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment