Closed Bug 1719462 Opened 3 years ago Closed 3 years ago

Add unified Intl::RelativeTimeFormat implementation

Categories

(Core :: Internationalization, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: dminor, Assigned: dminor)

References

Details

(Whiteboard: [i18n-unification])

Attachments

(6 files)

From https://bugzilla.mozilla.org/show_bug.cgi?id=1672548#c18, it seems like it might be useful to have this sooner rather than later.

Blocks: 1719549
Blocks: 1715892

This allows reusing the same buffer multiple times in a test, which
keeps test code simpler.

This code will be used by RelativeTimeFormat, so we need to move it to a place
where it will be accessible to both NumberFormat and RelativeTimeFormat.

Depends on D121410

This is a work-in-progress because the Auto/Always options are not
handled. This passes all of the jstests except for those related
to the Auto option.

Depends on D121413

Attachment #9234048 - Attachment description: WIP: Bug 1719462 - Use intl::RelativeTimeFormat in SpiderMonkey (WIP) → Bug 1719462 - Use intl::RelativeTimeFormat in SpiderMonkey; r=anba!
See Also: → 1719732

This bug and bug 1648137 modify the same files and we definitely will get some merge conflicts. Which of the two bugs should go first? Do you have any preferences?

Flags: needinfo?(dminor)

Since you have everything reviewed, I think it makes sense for you to land first. Thanks for checking!

Flags: needinfo?(dminor)
Blocks: 1719751
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b2a624e574d Add TestBuffer::clear(); r=platform-i18n-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/dd489d3d26c3 Use ICUError in NumberFormat; r=platform-i18n-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/beb0fb9af533 Move FormatResultToParts to NumberFormatFields; r=platform-i18n-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/483b19b9ecb8 Improve comments for NumberFormat::formatToParts; r=platform-i18n-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/07a088814264 Add intl::RelativeTimeFormat; r=platform-i18n-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/6b0c415e2975 Use intl::RelativeTimeFormat in SpiderMonkey; r=anba,tcampbell
Whiteboard: [i18n-unification]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: