Skip to content

Using formatters in plural syntax #737

Answered by scaltunsoy
scaltunsoy asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your answer.

pluralRule.select(0) returns "other" for en-US. However, I found the following workaround. I formatted the number before passing it to the translation function:

LL.products(productCount.toLocaleString(locale))

This produces outputs that I want for the languages that I am dealing with.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scaltunsoy
Comment options

Answer selected by ivanhofer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants