update moment locale as lowercase (#3155)

This commit is contained in:
Elias Nahum 2019-08-21 19:03:59 -04:00 committed by GitHub
parent 3eda53d49a
commit d6a699a14d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ function loadTranslation(locale) {
}
if (momentData) {
moment.updateLocale(locale, momentData);
moment.updateLocale(locale.toLowerCase(), momentData);
}
} catch (e) {
console.error('NO Translation found', e); //eslint-disable-line no-console