mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-13 11:44:29 +05:00
fix: locale detection error fixed
This commit is contained in:
@@ -102,7 +102,7 @@ class Lang {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSuitableLocale(locales) {
|
getSuitableLocale(locales) {
|
||||||
return locales.find(this.localeIsSupported) || this.defaultLocale;
|
return locales.find(this.localeIsSupported, this) || this.defaultLocale;
|
||||||
}
|
}
|
||||||
|
|
||||||
browserLocales(codeOnly = false) {
|
browserLocales(codeOnly = false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user