Skip to content

Commit 3cb5845

Browse files
committed
fix(i18n): generate locale config automatically
One can be maintained in-app if missing translations become a problem.
1 parent 4cf984e commit 3cb5845

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ android {
9898
includeInApk = false
9999
}
100100

101+
androidResources {
102+
@Suppress("UnstableApiUsage")
103+
generateLocaleConfig = true
104+
}
105+
101106
tasks.withType<KotlinCompile> {
102107
kotlinOptions.jvmTarget = project.libs.versions.app.build.kotlinJVMTarget.get()
103108
}

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
android:appCategory="image"
4141
android:icon="@mipmap/ic_launcher"
4242
android:label="@string/app_launcher_name"
43-
android:localeConfig="@xml/locale_config"
4443
android:requestLegacyExternalStorage="true"
4544
android:roundIcon="@mipmap/ic_launcher"
4645
android:theme="@style/AppTheme">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unqualifiedResLocale=en-US

0 commit comments

Comments
 (0)