mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
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:
11
build.gradle
11
build.gradle
@@ -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
1
res/resources.properties
Normal file
@@ -0,0 +1 @@
|
||||
unqualifiedResLocale=en-US
|
||||
Reference in New Issue
Block a user