-
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
Change content_locale to be &LanguageIdentifier #5566
Conversation
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.
Not a fan of lifetimes on options bags but I do think this is better.
I could be wrong but I recall us having a long discussion about this years ago and coming to a conclusion. I believe the conclusion was to borrow owned types in options bags but worth seeing if we can find and document it somewhere.
Yep, I don't see any strong justification for this to not be |
Looks like dart bindings generation has broken? Dart update? cc @robertbastian I support bypassing test-dart and merging this (and other open PRs that don't touch ffi) |
@aethanyc @makotokato Any feedback? |
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.
Sorry for the delay. This PR looks good to me.
@@ -2,8 +2,10 @@ | |||
// called LICENSE at the top level of the ICU4X source tree | |||
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). | |||
|
|||
|
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.
Nit: this blank line is not needed.
use icu_locale_core::langid; | ||
use icu_properties::PropertyNames; | ||
use icu_properties::PropertyNamesLong; | ||
|
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.
Nit: this blank line is not needed.
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.
Thanks!
Currently, segmenter doesn't require country and etc, so it is OK. |
Region is still part of the LanguageIdentifier. |
This keeps the options bags
Copy
.I also switched to
LanguageIdentifier
which is a more public-facing, stable type. We're trying to phase outDataLocale
in public-facing APIs (#419).