Skip to content

chore: add regional locale codes to filter#722

Merged
jvsena42 merged 3 commits intomasterfrom
chore/update-locales-list
Jan 23, 2026
Merged

chore: add regional locale codes to filter#722
jvsena42 merged 3 commits intomasterfrom
chore/update-locales-list

Conversation

@jvsena42
Copy link
Copy Markdown
Member

@jvsena42 jvsena42 commented Jan 23, 2026

This PR adds regional locale codes to the localeFilters configuration to ensure translations for Latin American Spanish (es-419), Spain Spanish (es-ES), and Brazilian Portuguese (pt-BR) are included in the APK.

Description

The localeFilters in build.gradle.kts was missing regional variants, causing Android's resource merger to strip out values-b+es+419, values-es-rES, and values-pt-rBR directories from the final build. Users with devices set to these regional locales would fall back to base language translations instead of seeing region-specific strings.

Preview

Screen_recording_20260123_101922.webm

QA Notes

  1. Build a release APK: ./gradlew assembleDevRelease
  2. Inspect the APK to verify regional resources are included:
    unzip -p app/build/outputs/apk/dev/release/*.apk res/xml/_generated_res_locale_config.xml
  3. Confirm es-419, es-ES, and pt-BR appear in the locale config output

@jvsena42 jvsena42 requested a review from ovitrif January 23, 2026 13:21
@jvsena42 jvsena42 self-assigned this Jan 23, 2026
@jvsena42
Copy link
Copy Markdown
Member Author

found a typo in

<string name="onboarding__empty_wallet">Para empezar\nempezar\n&lt;accent&gt;envíe\nBitcoin&lt;/accent&gt;\na su\nbilletera</string>

Can be updated in other PR

@claude

This comment has been minimized.

@jvsena42 jvsena42 marked this pull request as draft January 23, 2026 13:34
@jvsena42
Copy link
Copy Markdown
Member Author

Draft to fix comment

Split locale lists to use Android resource qualifier format for
localeFilters and BCP 47 format for BuildConfig.LOCALES, fixing
Locale.forLanguageTag() compatibility in tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jvsena42 jvsena42 marked this pull request as ready for review January 23, 2026 13:39
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jan 23, 2026


Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jan 23, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@jvsena42 jvsena42 enabled auto-merge January 23, 2026 14:59
Copy link
Copy Markdown
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

Thanks for the prompt fix

@jvsena42 jvsena42 merged commit 5619875 into master Jan 23, 2026
20 of 22 checks passed
@jvsena42 jvsena42 deleted the chore/update-locales-list branch January 23, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants