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

Add support for cldr RBNF #1082

Open
ribrdb opened this issue Jul 22, 2020 · 2 comments
Open

Add support for cldr RBNF #1082

ribrdb opened this issue Jul 22, 2020 · 2 comments

Comments

@ribrdb
Copy link
Contributor

ribrdb commented Jul 22, 2020

It would be great if goog.i18n supported rules based number formatting for spelling out numbers.

@12wrigja
Copy link
Collaborator

To clarify, you mean a hypothetical

goog.i18n.formatAsNumbers(500); // "Five hundred" in English, or "quinientos" in Spanish

I think this would be a use-case best supported by the Intl NumberFormat API (though it doesn't support it now as far as I can tell).

@ribrdb
Copy link
Contributor Author

ribrdb commented Jul 22, 2020

Something like that.
An analogue of the ICU RuleBasedNumberFormatter. I posted it here mainly because CLDR has data for doing this type of formatting, and they list Closure Library as one of the frameworks you should use to access CLDR data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants