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:
1 parent
cb2e86234d
commit
85b555d483
2 files changed
+10
-2
No files matched your search
+9
-2
@@ -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"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
unqualifiedResLocale=en-US
|
||||
Reference in new issue
Block a user