Add support for UDateFormatStyle to UDateIntervalFormat

Description

This ECMA-402 proposal <https://github.com/tc39/proposal-intl-datetime-style> adds support for generic date-time styles to the Intl.DateTimeFormat constructor:

And another ECMA-402 proposal <https://github.com/tc39/proposal-intl-DateTimeFormat-formatRange> adds support for formatting date-time ranges:

The latter proposal also requires that for an empty range, formatRange() returns the same output as format(). This is currently not possible to achieve using ICU, because the UDateIntervalFormat object doesn't provide support for UDateFormatStyle:

(The "at" is missing in the output string of the last example.)

Assignee

Felipe Balbontín

Reporter

André Bargull

Components

Labels

Reviewer

None

Priority

medium

Time Needed

Weeks

Fix versions

Configure