mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-03 21:30:12 +00:00
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:
parent
9f06394a1a
commit
875491a0e1
2 changed files with 3 additions and 3 deletions
|
@ -266,7 +266,7 @@ private fun getCurrencyKey(locale: Locale): Pair<String, List<String>> {
|
||||||
return euro
|
return euro
|
||||||
if (locale.language.matches("ca|eu|lb|mt|pms".toRegex()))
|
if (locale.language.matches("ca|eu|lb|mt|pms".toRegex()))
|
||||||
return euro
|
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))
|
return genericCurrencyKey(getCurrency(locale))
|
||||||
if (locale.language == "hy")
|
if (locale.language == "hy")
|
||||||
return dram
|
return dram
|
||||||
|
@ -299,7 +299,7 @@ private fun getCurrency(locale: Locale): String {
|
||||||
"gaa" -> "¢"
|
"gaa" -> "¢"
|
||||||
"ha" -> "₦"
|
"ha" -> "₦"
|
||||||
"ig" -> "₦"
|
"ig" -> "₦"
|
||||||
"iw" -> "₪"
|
"iw", "he" -> "₪"
|
||||||
"lo" -> "₭"
|
"lo" -> "₭"
|
||||||
"km" -> "៛"
|
"km" -> "៛"
|
||||||
"ko" -> "₩"
|
"ko" -> "₩"
|
||||||
|
|
|
@ -168,7 +168,7 @@ object ScriptUtils {
|
||||||
"sr", "mk", "ru", "uk", "mn", "be", "kk", "ky", "bg", "xdq", "cv", "mhr", "mns", "dru" -> SCRIPT_CYRILLIC
|
"sr", "mk", "ru", "uk", "mn", "be", "kk", "ky", "bg", "xdq", "cv", "mhr", "mns", "dru" -> SCRIPT_CYRILLIC
|
||||||
"ka" -> SCRIPT_GEORGIAN
|
"ka" -> SCRIPT_GEORGIAN
|
||||||
"el" -> SCRIPT_GREEK
|
"el" -> SCRIPT_GREEK
|
||||||
"iw" -> SCRIPT_HEBREW
|
"iw", "he" -> SCRIPT_HEBREW
|
||||||
"km" -> SCRIPT_KHMER
|
"km" -> SCRIPT_KHMER
|
||||||
"lo" -> SCRIPT_LAO
|
"lo" -> SCRIPT_LAO
|
||||||
"ml" -> SCRIPT_MALAYALAM
|
"ml" -> SCRIPT_MALAYALAM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue