fix: locale detection error fixed

This commit is contained in:
Yurii
2024-08-19 14:45:06 +03:00
parent 5cec043015
commit 9250bb26f2

View File

@@ -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) {