Enable per-app language support (#153)

This commit is contained in:
Kirill Kamakin
2023-07-02 09:20:05 +02:00
committed by GitHub
parent 7560ac874e
commit 3f93578ff0
3 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ android {
versionName = "0.3.12" versionName = "0.3.12"
testInstrumentationRunner = "gq.kirmanak.mealient.MealientTestRunner" testInstrumentationRunner = "gq.kirmanak.mealient.MealientTestRunner"
testInstrumentationRunnerArguments += mapOf("clearPackageData" to "true") testInstrumentationRunnerArguments += mapOf("clearPackageData" to "true")
resourceConfigurations += listOf("en", "es", "ru")
} }
signingConfigs { signingConfigs {

View File

@@ -16,6 +16,7 @@
android:roundIcon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.App.Starting" android:theme="@style/Theme.App.Starting"
android:localeConfig="@xml/locales_config"
tools:ignore="UnusedAttribute"> tools:ignore="UnusedAttribute">
<activity <activity
android:name=".ui.activity.MainActivity" android:name=".ui.activity.MainActivity"

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en-US" />
<locale android:name="es" />
<locale android:name="ru" />
</locale-config>