From 464d59b9570141e39e400d1886452e433a2ab6dd Mon Sep 17 00:00:00 2001 From: u7759158 Date: Fri, 18 Oct 2024 01:54:08 +1100 Subject: [PATCH] use google's api to change language --- app/build.gradle | 8 ++++++++ app/src/main/res/resources.properties | 1 + 2 files changed, 9 insertions(+) create mode 100644 app/src/main/res/resources.properties diff --git a/app/build.gradle b/app/build.gradle index 7d0e3b04e..bb3309714 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,6 +16,11 @@ if (isRunningOnTravisAndIsNotPRBuild) { 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 implementation 'in.yuvi:http.fluent:1.3' implementation 'com.google.code.gson:gson:2.8.5' @@ -387,6 +392,9 @@ android { abortOnError false disable 'MissingTranslation', 'ExtraTranslation' } + androidResources { + generateLocaleConfig true + } } String getTestUserName() { diff --git a/app/src/main/res/resources.properties b/app/src/main/res/resources.properties new file mode 100644 index 000000000..d5a3ddc92 --- /dev/null +++ b/app/src/main/res/resources.properties @@ -0,0 +1 @@ +unqualifiedResLocale=en-US \ No newline at end of file