-
Notifications
You must be signed in to change notification settings - Fork 176
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
Conversation
components/datetime/src/raw/neo.rs
Outdated
// 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")) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>
#1317
Getting really close to feature parity.