Skip to content

Support script subtags on Android and JVM - #901

Open
zalewskise wants to merge 1 commit into
icerockdev:developfrom
zalewskise:zalewskise/support-script-subtags-on-android-and-jvm
Open

zalewskise wants to merge 1 commit into
icerockdev:developfrom
zalewskise:zalewskise/support-script-subtags-on-android-and-jvm

Conversation

@zalewskise

@zalewskise zalewskise commented Nov 14, 2026 •

Copy link
Copy Markdown

What has changed?

  • Folders with a script subtag (zh-Hans, sr-Latn, sr-Latn-RS) now generate Android values-b+zh+Hans folders and JVM _zh_Hans bundles. Folders without a script generate the same output as before.
  • StringDesc.LocaleType.Custom on Android uses Locale.forLanguageTag on API 21+, so Custom("sr-Latn") picks the right resources.
  • README and the compose-resources-gallery sample now cover script locales.

Why it was changed?

Notes for Reviewers

  • On API 21+, an invalid tag passed to Custom no longer throws. Locale.forLanguageTag ignores the bad parts, and the default strings are used.

@zalewskise
zalewskise force-pushed the zalewskise/support-script-subtags-on-android-and-jvm branch from 4b30d14 to 9442c58 Compare November 14, 2026 06:26
@zalewskise
zalewskise marked this pull request as ready for review November 14, 2026 06:28
@zalewskise
zalewskise changed the base branch from master to develop November 23, 2026 06:23
@ExNDY
ExNDY self-requested a review November 30, 2026 10:36
@ExNDY ExNDY added this to the 0.28.0 milestone Nov 30, 2026
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.

BCP 47 language tag not working on android

2 participants