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

Fix datagen to propagate extension keywords and aux keys to child locales #4533

Merged
merged 9 commits into from
Jan 31, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented Jan 20, 2024

Fixes #4488

If ar-SA is requested and ar-u-nu-latn exists, ar-SA-u-nu-latn should be included, even if that locale isn't in CLDR data by itself.

This shows up also in the experimental skeleton keys. CC @blaynem

It also impacts neo datetime because of aux keys.

@sffc sffc marked this pull request as ready for review January 20, 2024 05:42
@sffc sffc changed the title Fix datagen to propagate extension keywords to child locales Fix datagen to propagate extension keywords and aux keys to child locales Jan 20, 2024
@sffc sffc added this to the 1.5 Blocking ⟨P1⟩ milestone Jan 20, 2024
@sffc sffc added T-bug Type: Bad behavior, security, privacy C-data-infra Component: provider, datagen, fallback, adapters labels Jan 20, 2024
@sffc sffc requested a review from a team as a code owner January 20, 2024 05:53
Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

Overall looks good but I want to defer to @robertbastian on final review

/// Resolves the set of explicit langids and the supported locales into two sets of locales:
///
/// - `explicit` contains the explicit langids but with aux keys and extension keywords included
/// - `implcit` contains any locale reachable by fallback from an `explicit` locale
Copy link
Member

Choose a reason for hiding this comment

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

nit: I'd like more comments here to explain what this handles, with examples referencing the locales mentioned in comments below

Copy link
Member Author

Choose a reason for hiding this comment

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

Added more docs

@sffc sffc merged commit 4b148df into unicode-org:main Jan 31, 2024
29 checks passed
@sffc sffc deleted the fb-fix branch January 31, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-data-infra Component: provider, datagen, fallback, adapters T-bug Type: Bad behavior, security, privacy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auxiliary keys don't work with hybrid or preresolved fallback
3 participants