make locale comparison case-unsensitive; fixes #42304

This commit is contained in:
Andre Weinand
2018-02-02 10:37:05 +01:00
parent e5cfb6ecc6
commit 00a339ebf4

View File

@@ -484,7 +484,7 @@ app.once('ready', function () {
boot({ locale: 'en', availableLanguages: {} });
} else {
// See above the comment about the loader and case sensitiviness
appLocale.toLowerCase();
appLocale = appLocale.toLowerCase();
getNLSConfiguration(appLocale).then((nlsConfig) => {
if (!nlsConfig) {
nlsConfig = { locale: appLocale, availableLanguages: {} };