Use platform's thousands separator setting for message sizes
Categories
(Core :: Internationalization, defect)
Tracking
()
People
(Reporter: Peter, Assigned: smontagu)
References
Details
(Keywords: helpwanted, intl, platform-parity)
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Reporter | ||
Comment 3•24 years ago
|
||
Updated•24 years ago
|
Comment 4•24 years ago
|
||
Reporter | ||
Updated•24 years ago
|
Updated•24 years ago
|
Comment 5•23 years ago
|
||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
Comment 8•23 years ago
|
||
Updated•23 years ago
|
Comment 9•20 years ago
|
||
Comment 11•20 years ago
|
||
Comment 12•20 years ago
|
||
Reporter | ||
Comment 13•17 years ago
|
||
Updated•15 years ago
|
Updated•15 years ago
|
Comment 14•4 years ago
|
||
We now have access to vendored-in ICU and expose Intl.NumberFormat in JS.
Comment 15•4 years ago
•
|
||
We now have access to vendored-in ICU and expose Intl.NumberFormat in JS.
I'm going to attempt to translate this sentence into English, for other software developers:
We now imported a third party library for the "International Components for Unicode" (see https://phrase.com/blog/posts/guide-to-the-icu-message-format/ ), which allows us to find the correct number format for the current locale.
We are exposing that to JavaScript code using a new API Intl.NumberFormat
(see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat ). That means that any JavaScript code can now consider the locale's number format.
However, all code that wants to use the correct number format must be changed to use the new API.
Did I translate this correctly? Also, doesn't that mean that this bug is now either FIXED (because the request here was implemented in the code) or a DUPLICATE of the bug where the implementation happened?
Comment 16•4 years ago
|
||
The latter. We are coalescing around ECMA-402 standard which exposes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
All callsites in Firefox/Thunderbird etc. UI can use it to add grouping separators and other locale specific features to locale formatting. The new localization system (Fluent) is also using NumberFormat API to localize numbers.
Also, doesn't that mean that this bug is now either FIXED (because the request here was implemented in the code) or a DUPLICATE of the bug where the implementation happened?
I don't think so. The request was to use platform's number formatting, while we use the ECMA-402 spec for it.
As to what status we should use, I guess it could be WONTFIX, but I am quasi mass-cleaning the component before the new team takes it over in January and was just using INACTIVE for all old bugs that I think are not relevant anymore.
Comment 17•4 years ago
|
||
To be clear, it sounds like a separate bug should be filed for Thunderbird specifically to use the NumberFormat API to addres the initial user-facing concern here.
Description
•