From 86838e7277d7a094496b9d231f06aad99f1e445e Mon Sep 17 00:00:00 2001 From: Tonkku Date: Mon, 6 May 2024 10:10:49 +0300 Subject: [PATCH] Enable support for Android per-app language preferences (#2795) * Enable support for Android per-app language preferences * Add changelog entry --- app/build.gradle.kts | 4 ++++ app/src/main/res/resources.properties | 17 +++++++++++++++++ changelog.d/2795.feature | 1 + 3 files changed, 22 insertions(+) create mode 100644 app/src/main/res/resources.properties create mode 100644 changelog.d/2795.feature diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6ecfe66fb6..47dd5023e0 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -165,6 +165,10 @@ android { buildConfigField("String", "FLAVOR_DESCRIPTION", "\"FDroid\"") } } + + androidResources { + generateLocaleConfig = true + } } androidComponents { diff --git a/app/src/main/res/resources.properties b/app/src/main/res/resources.properties new file mode 100644 index 0000000000..c0585fd6d7 --- /dev/null +++ b/app/src/main/res/resources.properties @@ -0,0 +1,17 @@ +# +# Copyright (c) 2024 New Vector Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +unqualifiedResLocale=en diff --git a/changelog.d/2795.feature b/changelog.d/2795.feature new file mode 100644 index 0000000000..4dec51f765 --- /dev/null +++ b/changelog.d/2795.feature @@ -0,0 +1 @@ +Enable support for Android per-app language preferences