From 7adcfb79d879bfc27e834823c009a5b64d0394d9 Mon Sep 17 00:00:00 2001 From: Lubos Lenco Date: Thu, 14 May 2020 19:35:30 +0200 Subject: [PATCH] Fix locale detect --- Sources/arm/Translator.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/arm/Translator.hx b/Sources/arm/Translator.hx index 9a5c2005..38854c5e 100644 --- a/Sources/arm/Translator.hx +++ b/Sources/arm/Translator.hx @@ -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"; }