update moment locale as lowercase (#3155)
This commit is contained in:
parent
3eda53d49a
commit
d6a699a14d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue