question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`formatToParts` support

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonmitcommented, Nov 25, 2018

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.

0reactions
elopez-agcommented, Oct 22, 2018

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 symbol

I’ll use @buschtoens approach for now, thx!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found