From f15868e7ab9993a384b7d8d30e2f3a093413f8e3 Mon Sep 17 00:00:00 2001 From: Usama <83345144+usamaiqb@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:18:12 +0500 Subject: [PATCH 1/2] build(lint): treat missing translations as a warning --- app/lint.xml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/lint.xml b/app/lint.xml index e439d9c..0ed1c38 100644 --- a/app/lint.xml +++ b/app/lint.xml @@ -3,14 +3,21 @@ Android Lint policy. CI runs `./gradlew lint` on every pull request and the job fails on lint *errors*. - Warnings are deliberately left as warnings for now: the pinch-zoom and word-wrap - deletions (prework items 3 and 4) and the P3/P4 refactor are about to move several - hundred lines, and fighting the linter through that at the same time is not worth it. - Revisit `warningsAsErrors` once P3 has landed. + Warnings are deliberately left as warnings for now; turning on `warningsAsErrors` is + planned. Anything suppressed here needs a reason next to it. --> + + + From 32a45a1bd50f5850ffc5cc68d688651e21c5fd52 Mon Sep 17 00:00:00 2001 From: Usama <83345144+usamaiqb@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:18:12 +0500 Subject: [PATCH 2/2] feat(i18n): list the app's languages in system settings --- app/build.gradle.kts | 6 ++++++ app/src/main/res/resources.properties | 1 + 2 files changed, 7 insertions(+) create mode 100644 app/src/main/res/resources.properties diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c8eacf4..77d5a55 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -39,6 +39,12 @@ android { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } + androidResources { + // Lists the translated locales in the manifest, so Android 13+ offers a per-app language + // in system settings. The default locale is named in res/resources.properties. + generateLocaleConfig = true + } + signingConfigs { if (releaseStoreFile != null && releaseStorePassword != null && releaseKeyAlias != null && releaseKeyPassword != null) { create("release") { diff --git a/app/src/main/res/resources.properties b/app/src/main/res/resources.properties new file mode 100644 index 0000000..467b3ef --- /dev/null +++ b/app/src/main/res/resources.properties @@ -0,0 +1 @@ +unqualifiedResLocale=en-US