Locales/Search

* do not apply minimum string length limiter to logographic languages
This commit is contained in:
Sarjuuk
2024-05-27 17:52:08 +02:00
parent f6565ea924
commit 2c451b8deb
3 changed files with 11 additions and 2 deletions

View File

@@ -853,6 +853,12 @@ abstract class Util
));
}
// todo: create Locale object and integrate
public static function isLogographic(int $localeId) : bool
{
return $localeId == LOCALE_CN || $localeId == LOCALE_TW || $localeId == LOCALE_KR;
}
// default back to enUS if localization unavailable
public static function localizedString(array $data, string $field, bool $silent = false) : string
{