-
Notifications
You must be signed in to change notification settings - Fork 183
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 getters for resolved preferences in DateTimeFormatter and FixedDecimalFormatter #5900
Comments
@sffc and I discussed this a bit. In general for getting ECMA402 resolved options from ICU4X's APIs, there are three types of things:
For type 1, we should just ask ECMA402 implementors to retain any data they wish to. There is no point in us unconditionally retaining such data. Type 3 is weird and needs to be figured out in a case by case basis. Type 2 is what we actually need to focus on here. There are a couple of non-mutually-exclusive strategies Strategy A: Data provider interceptionPeople can write custom data providers that intercept the loads for particular keys and record things like final resolved DataResponse locale, or in case of FixedDecimalFormat the last This is possible today. Things we can do to make this more pleasant:
Cons:
We could potentially design some mid-level abstractions for this. Strategy B:
|
We need getters for the following:
The text was updated successfully, but these errors were encountered: