Remove all l10n strings used to format units
Categories
(Core :: Internationalization, task, P3)
Tracking
()
People
(Reporter: zbraniecki, Unassigned)
References
Details
With landing of bug 1566410, we gain ability to format numbers using Intl.NumberFormat
.
Once the feature is enabled to ride trains, we should remove all strings and code that is currently used to format things like "5 kb", "5 mb/s", "12 meters", "9 yards" etc.
Assuming the code sticks, here's list of units: https://hg.mozilla.org/integration/autoland/file/tip/js/src/builtin/intl/NumberFormat.js#l341
All of them can be ["short", "narrow", "long"]
.
Here are some I found:
- https://searchfox.org/mozilla-central/source/toolkit/locales/en-US/chrome/mozapps/downloads/downloads.properties#66
- https://searchfox.org/mozilla-central/source/browser/locales/en-US/pdfviewer/viewer.properties#89
- https://searchfox.org/mozilla-central/source/devtools/client/locales/en-US/memory.properties#36
- https://searchfox.org/mozilla-central/source/devtools/client/locales/en-US/netmonitor.properties#238
- https://searchfox.org/mozilla-central/source/browser/locales/en-US/browser/pageInfo.ftl#236
- https://searchfox.org/mozilla-central/source/toolkit/locales/en-US/toolkit/about/aboutPerformance.ftl#42
but there are likely many more (I've seen translations of "5 ms" and "5 seconds" as well).
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Do we have a bug that tracks shipping on the trains?
Comment 2•5 years ago
|
||
No, there isn't yet a bug to enable it by default. We're likely going to wait shipping it until the remaining open spec issues are resolved, but if necessary/useful we could also always enable it for the mozIntl
object, similarly how mozIntl.DateTimeFormat
has some extra capabilities compared to the normal Intl.DateTimeFormat
.
Updated•2 years ago
|
Description
•