Browse Source

Enable support for Android per-app language preferences (#2795)

* Enable support for Android per-app language preferences

* Add changelog entry
pull/2799/head
Tonkku 5 months ago committed by GitHub
parent
commit
86838e7277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/build.gradle.kts
  2. 17
      app/src/main/res/resources.properties
  3. 1
      changelog.d/2795.feature

4
app/build.gradle.kts

@ -165,6 +165,10 @@ android {
buildConfigField("String", "FLAVOR_DESCRIPTION", "\"FDroid\"") buildConfigField("String", "FLAVOR_DESCRIPTION", "\"FDroid\"")
} }
} }
androidResources {
generateLocaleConfig = true
}
} }
androidComponents { androidComponents {

17
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

1
changelog.d/2795.feature

@ -0,0 +1 @@
Enable support for Android per-app language preferences
Loading…
Cancel
Save