Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of country and its subdivision and script #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhxie
Copy link

@zhxie zhxie commented May 12, 2024

In Android, we can use ISO 639 (language), ISO 3166 (country and its subdivision) and ISO 15924 (script) for localization, e.g., en-US, zh-Hans, sr-Latn-SR.

According to https://developer.android.com/guide/topics/resources/localization#creating-alternatives and https://developer.android.com/training/basics/supporting-devices/languages#CreateDirs, we need to use BCP 47 format values-b+<LANGUAGE>+<SCRIPT>+<COUNTRY_OR_ITS_SUBDIVISION> to create multi-language locale directories.

In this patch, we will keep the original format for locales using only languages for compatibility, and use the new format for locales including countries and their divisions and scripts.

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.

1 participant