Enable automatic per-app language support (#4312)

* Enable automatic per-app language support

This will send list of available localisation to Android for then user
to change the languages in Settings. The default language for Lawnchair
is set to English American (en-us)

Signed-off-by: GitHub <noreply@github.com>

* Enable pseudolocales for Debug variant

* Move pseudoLocalesEnabled into all block

---------

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
This commit is contained in:
Pun Butrach
2024-04-21 12:24:27 +07:00
committed by GitHub
parent cb2e86234d
commit 85b555d483
2 changed files with 10 additions and 2 deletions

View File

@@ -154,6 +154,10 @@ android {
}
}
androidResources {
generateLocaleConfig true
}
buildFeatures {
aidl true
buildConfig true
@@ -204,15 +208,18 @@ android {
.toArray()
buildTypes {
all {
signingConfig releaseSigning
pseudoLocalesEnabled true
}
debug {
applicationIdSuffix ".debug"
resValue("string", "derived_app_name", "Lawnchair (Debug)")
signingConfig releaseSigning
}
release {
resValue("string", "derived_app_name", "Lawnchair")
signingConfig releaseSigning
minifyEnabled true
shrinkResources true
proguardFiles proguardFilesFromAosp + "proguard.pro"

1
res/resources.properties Normal file
View File

@@ -0,0 +1 @@
unqualifiedResLocale=en-US