-
Notifications
You must be signed in to change notification settings - Fork 98
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
Update FluentNumber to use ICU4X #269
Comments
@zbraniecki |
I'd wait for ICU4X NumberFormatter, we have scaffolding for it in https://unicode-org.github.io/icu4x-docs/doc/fixed_decimal/index.html for some aspects, and unicode-org/icu4x#1441 for others. Maybe you'd like to help with that? :) |
Yeah, I was looking at that a bit. What are the approximate steps for working on that? |
You can go to issue #1441 and say you'd like to take it and ask for mentorship. Someone from our team will mentor you through that. If you prefer some other feature of Number Formatter you can ask here unicode-org/icu4x#275 and we'll help you carve out correct API to work on. The concept in ICU4X is to divide what JS knows as |
In Firefox we are using ICU4C to do this, but the examples in fluent-rs should be backed by ICU4X's number formatter. I'll update this issue to say as much. |
Update (from @gregtatum): This bug is now about about using ICU4X's number formatter to back FluentNumber.
It seems that fluent-rs can parse options for numbers, but not use them.
Looking at FluentNumber::as_string(), the only option that gets used is minimum fraction digits.
So, things to implement:
The text was updated successfully, but these errors were encountered: