mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 15:15:21 +00:00
Fix locale_key_texts
loading for he
locale (#1669)
This commit is contained in:
parent
16ce183942
commit
9efe534c03
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ private fun getStreamForLocale(locale: Locale, context: Context) =
|
||||||
else context.assets.open("$LOCALE_TEXTS_FOLDER/${locale.toLanguageTag()}.txt")
|
else context.assets.open("$LOCALE_TEXTS_FOLDER/${locale.toLanguageTag()}.txt")
|
||||||
} catch (_: Exception) {
|
} catch (_: Exception) {
|
||||||
try {
|
try {
|
||||||
context.assets.open("$LOCALE_TEXTS_FOLDER/${locale.language}.txt")
|
context.assets.open("$LOCALE_TEXTS_FOLDER/${if (locale.language == "he") "iw" else locale.language}.txt")
|
||||||
} catch (_: Exception) {
|
} catch (_: Exception) {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue