Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce number_format_i18n for @wordpress/i18n #22628

Open
Clorith opened this issue May 26, 2020 · 2 comments
Open

Introduce number_format_i18n for @wordpress/i18n #22628

Clorith opened this issue May 26, 2020 · 2 comments
Labels
Needs Technical Feedback Needs testing from a developer perspective. [Package] i18n /packages/i18n [Type] New API New API to be used by plugin developers or package users.

Comments

@Clorith
Copy link
Member

Clorith commented May 26, 2020

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.

@gziolo gziolo added [Package] i18n /packages/i18n [Type] New API New API to be used by plugin developers or package users. Needs Technical Feedback Needs testing from a developer perspective. labels May 27, 2020
@swissspidy
Copy link
Member

This could be a small wrapper around Intl.NumberFormat that handles the locale part.

@pedro-mendonca
Copy link
Contributor

Hi, any development on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Technical Feedback Needs testing from a developer perspective. [Package] i18n /packages/i18n [Type] New API New API to be used by plugin developers or package users.
Projects
None yet
Development

No branches or pull requests

4 participants