Ship Intl.RelativeTimeFormat

RESOLVED FIXED in Firefox 65

Status

()

enhancement
RESOLVED FIXED
6 months ago
3 months ago

People

(Reporter: anba, Assigned: anba)

Tracking

({dev-doc-complete})

Trunk
mozilla65
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox65 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 months ago
Intl.RelativeTimeFormat is already used internally (through MozIntl) and we didn't find any blocking issues which may prevent exposing the new object to normal web users. 

Support for Intl.RelativeTimeFormat.prototype.formatToParts will land at a later time (bug 1473229).
(Assignee)

Comment 1

6 months ago
Updated step numbers in js/src/builtin/intl/RelativeTimeFormat.js and some additional minor changes to reflect the latest proposal updates. The rest of the patch is mostly enabling Intl.RelativeTimeFormat by default and removing the conditional support through |js::AddRelativeTimeFormatConstructor|.
Attachment #9022290 - Flags: review?(jwalden+bmo)
Attachment #9022290 - Flags: review?(gandalf)
Comment on attachment 9022290 [details] [diff] [review]
bug1504334.patch

Review of attachment 9022290 [details] [diff] [review]:
-----------------------------------------------------------------

hell yeah! Thank you Andrew!
Attachment #9022290 - Flags: review?(gandalf) → review+
(Assignee)

Updated

6 months ago
Depends on: 1504656

Updated

5 months ago
Attachment #9022290 - Flags: review?(jwalden+bmo) → review+

Comment 3

5 months ago
Pushed by jwalden@mit.edu:
https://hg.mozilla.org/integration/mozilla-inbound/rev/69b08ee5925d
Let Intl.RelativeTimeFormat ride the trains.  r=jwalden, r=gandalf

Comment 4

5 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/69b08ee5925d
Status: ASSIGNED → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Hi Florian, can you help me promote this on MDN? This API got some recent traction because we and V8 exposed it, and I'd love to link people to MDN rather than any other sources ;)
Flags: needinfo?(fscholz)
Hi Zibi,

Sorry for not being more responsive on this. I just added a note to the Fx65 rel notes for cover this addition:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#JavaScript

And one of our contributors added this page:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat

We still need to make sure this is linked up properly, e.g. in places like
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl

I'll try to get to these final checks in the next few days, before breaking up for Xmas vacation.
Flags: needinfo?(fscholz)
Depends on: 1270140

LGTM Chris. Remaining doc work is also tracked here now: https://github.com/tc39/proposal-intl-relative-time/issues/102

You need to log in before you can comment on or make changes to this bug.