From 3f93578ff08d3790c0e641109f4ae3e611e08d81 Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sun, 2 Jul 2023 09:20:05 +0200 Subject: [PATCH] Enable per-app language support (#153) --- app/build.gradle.kts | 1 + app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/locales_config.xml | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 app/src/main/res/xml/locales_config.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1093879..913897d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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 { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d1dfc1e..c2fae41 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -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"> + + + + + \ No newline at end of file