Add intl::NumberFormat and use it to format numbers in Fluent
Categories
(Core :: Internationalization, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
References
(Blocks 1 open bug)
Details
(Whiteboard: [i18n-unification])
Attachments
(2 files)
This will add an initial NumberFormat implementation to intl/components that has sufficient functionality to support formatting Fluent numbers, and switch Fluent over to using it.
Assignee | ||
Comment 1•4 years ago
|
||
This adds an initial version of NumberFormat that is suitable for use by
Fluent.
The options formatting code is taken from SpiderMonkey and modified to use the
standard c++ library rather than SpiderMonkey specific code. The code
generated MeasureUnitGenerated.h is duplicated here temporarily. Once we can
move SpiderMonkey to using this code, we can update the code generation to
avoid this duplication.
Some simple gtests have been written to make development easier. Full test
coverage is not a goal here, as this code will eventually be covered by running
test262 in SpiderMonkey.
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D107223
Assignee | ||
Comment 3•4 years ago
|
||
Anba, I think this is ready for you to have another look if you have some time. Thank you!
Assignee | ||
Comment 4•4 years ago
|
||
I'm going to land this with the current reviews. There's follow on work in Bug 1701695, so there will be another chance to have a look at this code.
Assignee | ||
Comment 5•4 years ago
|
||
A mach try auto run here: https://treeherder.mozilla.org/jobs?repo=try&revision=e8106ff6ab7f13ee169e11a362e69d01b69d43fd and a full job for Linux, just in case: https://treeherder.mozilla.org/jobs?repo=try&revision=4457294b5d9a5578198774e6c2029646fc05f1df. The failures all look like known intermittents.
Comment 7•4 years ago
|
||
Backed out for causing bustages on FluentBundle.cpp.
Backout link: https://hg.mozilla.org/integration/autoland/rev/87b4dfca8a62db71a72a17778ebc8bca2861c512
Failure log: https://treeherder.mozilla.org/logviewer?job_id=335782134&repo=autoland&lineNumber=15878
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9d2fed16373f
https://hg.mozilla.org/mozilla-central/rev/a895e219ce93
Updated•3 years ago
|
Description
•