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

Document invariants in LocaleFallbacker #4414

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Conversation

sffc
Copy link
Member

@sffc sffc commented Dec 6, 2023

Follow-up from #4412

//! Watch [#2243](https://github.com/unicode-org/icu4x/issues/2243) to track improvements to
//! this algorithm and steps to enshrine the algorithm in CLDR.
//!
//! # Examples
Copy link
Member Author

Choose a reason for hiding this comment

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

This example was duplicated below.

/// https://github.com/unicode-org/icu4x/issues/2243) to track aligment with *UTS #35*.
///
/// If running fallback in a loop, use [`DataLocale::is_und()`] to break from the loop.
Copy link
Member

Choose a reason for hiding this comment

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

what about cases where und-Script is distinct from und?

@@ -84,8 +58,34 @@ mod algorithms;
/// assert_eq!(fallback_iterator.get(), &locale!("und").into());
/// ```
///
/// Unicode extension keywords take part in fallback, but [auxiliary keys]
Copy link
Member

Choose a reason for hiding this comment

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

Can we not put this here until aux keys are stabilized?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll merge this PR because I think we agree that it is a step in the right direction given the current state of how aux keys work. Users can click the link and read that aux keys are experimental. I think we'll need to change the machinery in 2.0.

Copy link
Member

Choose a reason for hiding this comment

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

We decided to not merge this in #4412 (comment).

@sffc sffc added the discuss-priority Discuss at the next ICU4X meeting label Dec 8, 2023
@sffc sffc removed the discuss-priority Discuss at the next ICU4X meeting label Dec 14, 2023
@sffc sffc merged commit 7a7e93c into unicode-org:main Jan 30, 2024
29 checks passed
@sffc sffc deleted the fallback-inv branch January 30, 2024 02:53
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.

4 participants