Closed
Bug 1422658
Opened 7 years ago
Closed 7 years ago
Extend mozIntl to handle NumberFormat, PluralRules and Collator
Categories
(Core :: Internationalization, enhancement, P3)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file)
Currently, mozIntl only provides the APIs for formatters that we extend functionality for, like DateTimeFormat, and for APIs not available on Intl yet.
But since one of the core functionalities that mozIntl provides over Intl is a better Gecko specific selection of locales, it would be nice to have all formatters available on mozIntl.
In particular, DownloadUtils currently use `Intl.NumberFormat()`[0], while it should use `mozIntl.NumberFormat()`.
If possible, it would also be *really* nice if we could get our IDL to handle classes to do `new mozIntl.NumberFormat` over `mozIntl.createNumberFormat` function.
[0] https://searchfox.org/mozilla-central/source/toolkit/mozapps/downloads/DownloadUtils.jsm#55
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
This is a trivial patch which enables us to use Intl.* APIs with regional prefs locales. Currently we'll always use a single set, but in the future I imagine for some systems we may use different locales for DateTime (LC_TIME), and Number (LC_NUMERIC) etc.
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8943804 [details]
Bug 1422658 - Extend mozIntl to handle NumberFormat, PluralRules and Collator.
https://reviewboard.mozilla.org/r/214186/#review220474
Attachment #8943804 -
Flags: review?(jfkthame) → review+
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7921b75e72a7
Extend mozIntl to handle NumberFormat, PluralRules and Collator. r=jfkthame
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•