aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modern/src/common/localization.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/localization.js b/modern/src/common/localization.js
index 8d17674..4c25697 100644
--- a/modern/src/common/localization.js
+++ b/modern/src/common/localization.js
@@ -120,7 +120,7 @@ for (let i = 0; i < languages.length; i++) {
}
if (language.length > 2) {
language = languages[i].substring(0, 2);
- if (language in locale.languages) {
+ if (language in supportedLanguages) {
break;
}
}