update moment locale as lowercase (#3157)

This commit is contained in:
Mattermost Build 2019-08-22 01:07:06 +02:00 committed by Elias Nahum
parent b8844c13b7
commit 3427e917f4

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