Closed
Bug 1473230
Opened 7 years ago
Closed 7 years ago
Allow plural units in Intl.RelativeTimeFormat
Categories
(Core :: JavaScript: Internationalization API, enhancement)
Core
JavaScript: Internationalization API
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: anba, Assigned: khyperia)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
4.60 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
Plural unit values should be allowed for Intl.RelativeTimeFormat per <https://github.com/tc39/proposal-intl-relative-time/commit/3b98baba6c120f2199c3227655c4e4c673c471a9>.
Updated•7 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → khyperia
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #9002872 -
Flags: review?(jwalden+bmo)
Comment 2•7 years ago
|
||
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+
Comment 3•7 years ago
|
||
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.)
Assignee | ||
Comment 4•7 years ago
|
||
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
Comment 6•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 7•6 years ago
|
||
Plural forms are mentioned in the syntax section of the docs https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat/format#Syntax
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•