Formatter is designed to provide an opaque string as an output that is not meant to be manipulated by the consumer, which makes impossible for UX/design using rich formatting, e.g., "1 000.<strong>35</strong>" and "35.4 <strong>%</strong>".
Goal
Expose format to parts similarly to Ecma-402 Intl.DateTimeFormat.prototype.formatToParts().
Context
Formatter is designed to provide an opaque string as an output that is not meant to be manipulated by the consumer, which makes impossible for UX/design using rich formatting, e.g.,
"1 000.<strong>35</strong>"
and"35.4 <strong>%</strong>"
.Goal
Expose format to parts similarly to Ecma-402 Intl.DateTimeFormat.prototype.formatToParts().
References