Closed Bug 1422658 Opened 2 years ago Closed 2 years ago
Intl to handle Number Format, Plural Rules and Collator
59 bytes, text/x-review-board-request
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()`, 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.  https://searchfox.org/mozilla-central/source/toolkit/mozapps/downloads/DownloadUtils.jsm#55
Priority: -- → P3
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
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 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 firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/7921b75e72a7 Extend mozIntl to handle NumberFormat, PluralRules and Collator. r=jfkthame
You need to log in before you can comment on or make changes to this bug.