Intl.NumberFormat.prototype.formatToParts() is scheduled to be added to the ECMAScript Internationalization API specification (Ecma 402). It adds a method to format a number to a list of tokens and their types (e.g. minusSign, integer, decimal, fraction, currency, percentSign, etc). See also the corresponding DateTimeFormat feature here: https://www.chromestatus.com/feature/6319456309477376
Documentation
Specification
Status in Chromium
Blink>JavaScript>Internationalization
Enabled by default (tracking bug) in:
- Chrome for desktop release 64
- Chrome for Android release 64
- Android WebView release 64
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- Shipped/Shipping
- Positive
- No signal
- No signals
Owners
Search tags
javascript, ecmascript, intl, string, i18n, internationalization, format, js, es6, es7, esnext,Last updated on 2020-11-09