Closed Bug 1473230 Opened 7 years ago Closed 7 years ago

Allow plural units in Intl.RelativeTimeFormat

Categories

(Core :: JavaScript: Internationalization API, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: anba, Assigned: khyperia)

References

()

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Plural unit values should be allowed for Intl.RelativeTimeFormat per <https://github.com/tc39/proposal-intl-relative-time/commit/3b98baba6c120f2199c3227655c4e4c673c471a9>.
Assignee: nobody → khyperia
Status: NEW → ASSIGNED
Attachment #9002872 - Flags: review?(jwalden+bmo)
Comment on attachment 9002872 [details] [diff] [review] Allow plural units in Intl.RelativeTimeFormat. Review of attachment 9002872 [details] [diff] [review]: ----------------------------------------------------------------- Stealing review. r=me. Please upload an updated patch with the requested change below and `r=jorendorff` at the end of the first line of the commit message, then set the checkin-needed keyword on this bug. ::: js/src/tests/non262/Intl/RelativeTimeFormat/format.js @@ +89,5 @@ > assertEq(rtf.format(1, "year"), "next year"); > } > > +{ > + // Plural specifier Instead, delete these lines from jstests.list: # https://bugzilla.mozilla.org/show_bug.cgi?id=1473230 skip script test262/intl402/RelativeTimeFormat/prototype/format/unit-plural.js
Attachment #9002872 - Flags: review?(jwalden+bmo) → review+
You'll have to set the "review" flag on your new patch to r+. (As a matter of policy, you of course can't review your own patch; but as a matter of practicality, the system doesn't enforce this, and it's 100% correct procedure to mark a slightly modified patch r+ yourself, in cases like this, rather than pester a reviewer to stamp the same patch a second time.)
Debugged through the "quarter" failure until the first time "UDAT_REL_UNIT_QUARTER" is unhandled. That location is here [0]. Talked with Jason offline, and the decision is that we'll land this patch as-is until the quarter situation is figured out in ICU. [0] https://searchfox.org/mozilla-central/rev/3fa761ade83ed0b8ab463acb057c2cf0b104689e/intl/icu/source/i18n/reldatefmt.cpp#840-851
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e68b064f46b9 Allow plural units in Intl.RelativeTimeFormat. r=jorendorff
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: