From 9250bb26f2adbd5a0ccb1cc70826e21d6786678a Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 19 Aug 2024 14:45:06 +0300 Subject: [PATCH] fix: locale detection error fixed --- src_data/scripts/lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_data/scripts/lang.js b/src_data/scripts/lang.js index 9be0df6..084f004 100644 --- a/src_data/scripts/lang.js +++ b/src_data/scripts/lang.js @@ -102,7 +102,7 @@ class Lang { } getSuitableLocale(locales) { - return locales.find(this.localeIsSupported) || this.defaultLocale; + return locales.find(this.localeIsSupported, this) || this.defaultLocale; } browserLocales(codeOnly = false) {