android: add Arabic, Finnish, Hebrew (#3018)

* android: add Arabic, Finnish, Hebrew

* update localization lib to support Hebrew

---------

Co-authored-by: Avently <7953703+avently@users.noreply.github.com>
This commit is contained in:
Evgeny Poberezkin 2023-09-05 15:07:37 +01:00 committed by GitHub
parent 4d6283630a
commit 83b939d215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -83,12 +83,15 @@ android {
// Comma separated list of languages that will be included in the apk
android.defaultConfig.resConfigs(
"en",
"ar",
"bg",
"cs",
"de",
"es",
"fi",
"fr",
"it",
"iw",
"ja",
"nl",
"pl",

View File

@ -46,7 +46,7 @@ buildscript {
classpath("com.android.tools.build:gradle:${rootProject.extra["gradle.plugin.version"]}")
classpath(kotlin("gradle-plugin", version = rootProject.extra["kotlin.version"] as String))
classpath("org.jetbrains.kotlin:kotlin-serialization:1.3.2")
classpath("dev.icerock.moko:resources-generator:0.22.3")
classpath("dev.icerock.moko:resources-generator:0.23.0")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

View File

@ -39,7 +39,7 @@ kotlin {
api("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
api("com.russhwolf:multiplatform-settings:1.0.0")
api("com.charleskorn.kaml:kaml:0.43.0")
api("dev.icerock.moko:resources-compose:0.22.3")
api("dev.icerock.moko:resources-compose:0.23.0")
api("org.jetbrains.compose.ui:ui-text:${rootProject.extra["compose.version"] as String}")
implementation("org.jetbrains.compose.components:components-animatedimage:${rootProject.extra["compose.version"] as String}")
//Barcode
@ -48,7 +48,7 @@ kotlin {
// Link Previews
implementation("org.jsoup:jsoup:1.13.1")
// Resources
implementation("dev.icerock.moko:resources:0.22.3")
implementation("dev.icerock.moko:resources:0.23.0")
}
}
val commonTest by getting {
@ -62,7 +62,7 @@ kotlin {
val work_version = "2.7.1"
implementation("androidx.work:work-runtime-ktx:$work_version")
implementation("com.google.accompanist:accompanist-insets:0.23.0")
implementation("dev.icerock.moko:resources:0.22.3")
implementation("dev.icerock.moko:resources:0.23.0")
// Video support
implementation("com.google.android.exoplayer:exoplayer:2.17.1")

View File

@ -201,12 +201,15 @@ object AppearanceScope {
val supportedLanguages = mapOf(
"system" to generalGetString(MR.strings.language_system),
"en" to "English",
"ar" to "العربية",
"bg" to "Български",
"cs" to "Čeština",
"de" to "Deutsch",
"es" to "Español",
"fi" to "Suomi",
"fr" to "Français",
"it" to "Italiano",
"iw" to "עִברִית",
"ja" to "日本語",
"nl" to "Nederlands",
"pl" to "Polski",