Bug 238437 - Intl.NumberFormat.formatRange(), Intl.NumberFormat.formatRangeToParts(), and Intl.PluralRules.selectRange() are not available
Summary: Intl.NumberFormat.formatRange(), Intl.NumberFormat.formatRangeToParts(), and ...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-27 23:18 PDT by Alan Davalos
Modified: 2022-03-28 10:25 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Davalos 2022-03-27 23:18:27 PDT
The release notes for Safari 15.4 mention that Intl.NumberFormat.formatRange(), Intl.NumberFormat.formatRangeToParts(), and Intl.PluralRules.selectRange() have all been added.

https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes

However, doing some simple tests, all of the functions above are undefined

new Intl.NumberFormat('de-DE').formatRange; // undefined
new Intl.NumberFormat('de-DE').formatRangeToParts; // undefined

new Intl.PluralRules('de-DE').selectRange; // undefined

I've tested the other Intl features added in 15.4 but every other feature except these three seem to be implemented correctly
Comment 1 Radar WebKit Bug Importer 2022-03-28 06:42:58 PDT
<rdar://problem/90919466>
Comment 2 Yusuke Suzuki 2022-03-28 10:25:23 PDT
Thanks.
This needs the latest macOS / iOS update too since it relies on the system-installed ICU.
So, please update the OS to update the system ICU.