use google's api to change language

This commit is contained in:
u7759158 2024-10-18 01:54:08 +11:00
parent 4fc2bbd786
commit 464d59b957
2 changed files with 9 additions and 0 deletions

View file

@ -16,6 +16,11 @@ if (isRunningOnTravisAndIsNotPRBuild) {
dependencies { dependencies {
def appcompat_version = "1.7.0"
implementation "androidx.appcompat:appcompat:$appcompat_version"
// For loading and tinting drawables on older versions of the platform
implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
// Utils // Utils
implementation 'in.yuvi:http.fluent:1.3' implementation 'in.yuvi:http.fluent:1.3'
implementation 'com.google.code.gson:gson:2.8.5' implementation 'com.google.code.gson:gson:2.8.5'
@ -387,6 +392,9 @@ android {
abortOnError false abortOnError false
disable 'MissingTranslation', 'ExtraTranslation' disable 'MissingTranslation', 'ExtraTranslation'
} }
androidResources {
generateLocaleConfig true
}
} }
String getTestUserName() { String getTestUserName() {

View file

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