aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-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 8d176745..4c25697d 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;
}
}