Open Clorith opened 4 years ago
WordPress translation functions have had number_format_i18n for some time, which is convenient for outputting numbers in a locale-appropriate way.
number_format_i18n
It would be beneficial to discuss the possibilities of introducing this as part of the @wordpress/i18n package as well.
@wordpress/i18n
This could be a small wrapper around Intl.NumberFormat that handles the locale part.
Hi, any development on this?
WordPress translation functions have had
number_format_i18n
for some time, which is convenient for outputting numbers in a locale-appropriate way.It would be beneficial to discuss the possibilities of introducing this as part of the
@wordpress/i18n
package as well.