From a466f33b4e4f9fb420123ce2efb3da38026ab08d Mon Sep 17 00:00:00 2001 From: David Kaspar Date: Wed, 31 May 2023 09:34:21 +0100 Subject: [PATCH] Add support for per-app languange preferences --- app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/locales_config.xml | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 app/src/main/res/xml/locales_config.xml diff --git a/app/build.gradle b/app/build.gradle index ef49d26d0..f441a97ed 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,6 +20,7 @@ android { vectorDrawables { useSupportLibrary true } + resConfigs("ar", "cs", "eo", "es", "fa", "fr", "hu", "night", "nl", "pt-rBR", "ru", "sv-rSE", "ta", "tr", "uk", "zh", "sh-rHK", "zh-rTW" ) } buildTypes { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a386157e9..05f62cbf6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -30,6 +30,7 @@ android:largeHeap="true" android:usesCleartextTraffic="true" android:hardwareAccelerated="true" + android:localeConfig="@xml/locales_config" tools:targetApi="33"> + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file