Add support for "type" and "style" options to Intl.ListFormat and enable Intl.ListFormat by default
Categories
(Core :: JavaScript: Internationalization API, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(4 files)
This is currently blocked because of missing ICU APIs: https://unicode-org.atlassian.net/browse/ICU-12863
Updated•5 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
ulistfmt_openForType
is a draft API, so it may not be available when compiling
against a system ICU. Instead of disabling Intl.ListFormat
completely, this
patch adds a boolean parameter to InitializeListFormat
to conditionally enable
the "type" and "style" options when ICU draft APIs are available.
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
"conjunction-long.js" can be removed, because the more thorough
"conjunction-type.js" test gets enabled in this patch.
Depends on D72916
Assignee | ||
Comment 3•4 years ago
|
||
We can avoid initialising the ICU list formatter and calling into C++ when the
list contains less than two elements.
Depends on D72917
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D72918
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a0fcee52ae04
https://hg.mozilla.org/mozilla-central/rev/ed81e75b9623
https://hg.mozilla.org/mozilla-central/rev/26fe2fe0c9e5
https://hg.mozilla.org/mozilla-central/rev/f17442f0485c
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 7•4 years ago
|
||
Announced on Firefox 78 for developers:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/78#JavaScript
Reference docs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf
Compat data update:
https://github.com/mdn/browser-compat-data/pull/6238
Description
•