Implement numberingSystem for RelativeTimeFormat#resolvedOptions
Categories
(Core :: JavaScript: Internationalization API, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: fs, Assigned: anba)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
I've just documented https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/resolvedOptions
The spec mentions "numberingSystem" and I see it added to the spec here https://github.com/tc39/proposal-intl-relative-time/pull/100
It doesn't seem to be added to our implementation yet.
PR for tests: https://github.com/tc39/test262/pull/2011
var de = new Intl.RelativeTimeFormat('de-DE');
de.resolvedOptions();
// Object { locale: "de-DE", style: "long", numeric: "always" }
Would have expected:
// Object { locale: "de-DE", style: "long", numeric: "always", numberingSystem: "latn" }
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
I have a patch for this bug, but as it currently requires a workaround for https://unicode-org.atlassian.net/browse/ICU-20280, it probably makes more sense to wait until bug 1533481 lands, because ICU-20280 has been fixed in ICU 64.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:anba, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 5•5 years ago
|
||
Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e3ffa96d1b94
Add numberingSystem support to Intl.RelativeTimeFormat. r=jwalden
Comment 7•5 years ago
|
||
bugherder |
Reporter | ||
Comment 8•5 years ago
|
||
Added to Fx 70 release notes: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/70#JavaScript
Reference page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/resolvedOptions
Compat data: https://github.com/mdn/browser-compat-data/pull/4870
Rather small change; no review needed. Let me know if you have feedback.
Assignee | ||
Comment 9•5 years ago
|
||
(In reply to Florian Scholz [:fscholz] (MDN) from comment #8)
Added to Fx 70 release notes: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/70#JavaScript
The release notes should probably also mention that the Unicode extension key "nu" is now supported for the Intl.RelativeTimeFormat
constructor.
For example before this bug new Intl.RelativeTimeFormat("th-u-nu-thai").format(123, "days")
returned "ในอีก 123 วัน"
, but now the return value is "ในอีก ๑๒๓ วัน"
.
Reporter | ||
Comment 10•5 years ago
|
||
Updated the text on the release notes. Thank you!
Description
•