Fix locale_key_texts loading for he locale (#1669)

This commit is contained in:
Eran Leshem 2025-06-07 21:38:38 +03:00 committed by GitHub
parent 16ce183942
commit 9efe534c03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,7 +214,7 @@ private fun getStreamForLocale(locale: Locale, context: Context) =
else context.assets.open("$LOCALE_TEXTS_FOLDER/${locale.toLanguageTag()}.txt")
} catch (_: Exception) {
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) {
null
}