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

Add u-hc hour cycle support to neo time formatter #5317

Merged
merged 10 commits into from
Jul 30, 2024
Merged

Conversation

sffc
Copy link
Member

@sffc sffc commented Jul 27, 2024

#1317

Getting really close to feature parity.

components/datetime/src/neo_marker.rs Show resolved Hide resolved
components/datetime/src/neo_marker.rs Show resolved Hide resolved
components/datetime/src/neo_skeleton.rs Outdated Show resolved Hide resolved
// First try to load with the explicit hour cycle. If there is no explicit hour cycle,
// or if loading the explicit hour cycle fails, then load with the default hour cycle.
let mut maybe_payload = None;
if let Some(hc) = locale.get_unicode_ext(&icu_locale_core::extensions::unicode::key!("hc"))
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: resolve the hc at the top-level constructor, and pass it separately from DataLocale. This will make it easier to remove Unicode extensions from DataLocale and migrate the input DataLocale to preferences.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

provider/source/src/datetime/neo_skeleton.rs Outdated Show resolved Hide resolved
sffc and others added 3 commits July 29, 2024 17:20
@sffc sffc requested a review from robertbastian July 30, 2024 00:40
@sffc sffc closed this Jul 30, 2024
@sffc sffc reopened this Jul 30, 2024
@sffc sffc merged commit 6d39119 into unicode-org:main Jul 30, 2024
28 checks passed
@sffc sffc deleted the neohc branch July 30, 2024 06:10
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