Fix locale detect

This commit is contained in:
Lubos Lenco
2020-05-14 19:35:30 +02:00
parent dcf8d0f0e1
commit 7adcfb79d8
+1 -1
View File
@@ -35,7 +35,7 @@ class Translator {
}
// Check whether the requested or detected locale is available
if (Config.raw.locale != "en" && getSupportedLocales().indexOf(newLocale) == -1) {
if (Config.raw.locale != "en" && getSupportedLocales().indexOf(Config.raw.locale) == -1) {
// Fall back to English
Config.raw.locale = "en";
}