Skip to content

FormattedPlural #177

Answered by dejurin
dejurin asked this question in Q&A
Feb 1, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I get it, I apologize. For the new topic.
I didn't think it would work.
Maybe I should add this as an example.

{"msg": "Ви маєте {count, plural, =0 {{zero}} =1 {{one}} other {{other}}} повідомлень."}
t('msg', { num: 2, zero: 'нуль', one: 'одне', other: 'багато' })
// Ви маєте багато повідомлень.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by dejurin
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