Enable per-app language support (#153)
This commit is contained in:
@@ -20,6 +20,7 @@ android {
|
||||
versionName = "0.3.12"
|
||||
testInstrumentationRunner = "gq.kirmanak.mealient.MealientTestRunner"
|
||||
testInstrumentationRunnerArguments += mapOf("clearPackageData" to "true")
|
||||
resourceConfigurations += listOf("en", "es", "ru")
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
android:roundIcon="@mipmap/ic_launcher"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.App.Starting"
|
||||
android:localeConfig="@xml/locales_config"
|
||||
tools:ignore="UnusedAttribute">
|
||||
<activity
|
||||
android:name=".ui.activity.MainActivity"
|
||||
|
||||
6
app/src/main/res/xml/locales_config.xml
Normal file
6
app/src/main/res/xml/locales_config.xml
Normal 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>
|
||||
Reference in New Issue
Block a user