Recognize the he language code as Hebrew (#1529)

in addition to outdated `iw` that is used on Android 14 and older
This commit is contained in:
Eran Leshem 2025-05-01 21:17:41 +03:00 committed by GitHub
parent 9f06394a1a
commit 875491a0e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -266,7 +266,7 @@ private fun getCurrencyKey(locale: Locale): Pair<String, List<String>> {
return euro
if (locale.language.matches("ca|eu|lb|mt|pms".toRegex()))
return euro
if (locale.language.matches("ak|dag|ee|fa|gaa|ha|ig|iw|lo|ko|km|mn|ne|si|th|uk|vi|yo".toRegex()))
if (locale.language.matches("ak|dag|ee|fa|gaa|ha|he|ig|iw|lo|ko|km|mn|ne|si|th|uk|vi|yo".toRegex()))
return genericCurrencyKey(getCurrency(locale))
if (locale.language == "hy")
return dram
@ -299,7 +299,7 @@ private fun getCurrency(locale: Locale): String {
"gaa" -> "¢"
"ha" -> ""
"ig" -> ""
"iw" -> ""
"iw", "he" -> ""
"lo" -> ""
"km" -> ""
"ko" -> ""

View file

@ -168,7 +168,7 @@ object ScriptUtils {
"sr", "mk", "ru", "uk", "mn", "be", "kk", "ky", "bg", "xdq", "cv", "mhr", "mns", "dru" -> SCRIPT_CYRILLIC
"ka" -> SCRIPT_GEORGIAN
"el" -> SCRIPT_GREEK
"iw" -> SCRIPT_HEBREW
"iw", "he" -> SCRIPT_HEBREW
"km" -> SCRIPT_KHMER
"lo" -> SCRIPT_LAO
"ml" -> SCRIPT_MALAYALAM