`formatToParts` support
See original GitHub issueare there any plans to add support for formatToParts()
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
"formatToParts" | Can I use... Support tables for HTML5, CSS3 ...
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Intl.DateTimeFormat.prototype.formatToParts() - MDN Web Docs
The Intl.DateTimeFormat.prototype.formatToParts() method allows locale-aware formatting of strings produced by Intl.DateTimeFormat formatters.
Read more >Intl.NumberFormat.prototype.formatToParts() - JavaScript
The Intl.Numberformat.prototype.formatToParts() method allows locale-aware formatting of strings produced by NumberFormat formatters.
Read more >Support Intl.NumberFormat.formatToParts in ES2018 #41299
Code. new Intl.NumberFormat().formatToParts. Expected behavior: Should be supported. Actual behavior: It requires ESNext.
Read more >Intl.NumberFormat.prototype.formatToParts support for Safari ...
There are details on supported browsers/environments by function including formatToParts, and a link to a polyfill.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it’s best to leverage the native API for this, so I believe @buschtoens approach is the right one.
I don’t know how else we would expose this API on the service or as a helper. We could polyfill the API, but I’d prefer to move that responsibility to an optional addon.
I came here looking for
formatToParts
as I need something like the example at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/formatToParts#Examples to add different css to the currency symbolI’ll use @buschtoens approach for now, thx!