update moment locale as lowercase (#3157)
This commit is contained in:
parent
b8844c13b7
commit
3427e917f4
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