You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a message that should be localized. The message has numbers and I want it to use plurals or singulars depending on the numbers. I know that there is trans_choice but my message contains multiple number variables:
"You have selected :n participants for a time slot with :m available spots."
So, it can be:
plural-plural: "You have selected 5 participants for a time slot with 3 available spots."
plural-singular: "You have selected 5 participants for a time slot with 1 available spot."
singular-zero: "You have selected 1 participant for a time slot with no available spots."
plural-zero: "You have selected 2 participants for a time slot with no available spots."
Is it possible to achieve with one translation key? Or the only way is to have one choice msg for single selected and one choice for multiple selected with 3 options in each of them (plural available, single available, no available)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a message that should be localized. The message has numbers and I want it to use plurals or singulars depending on the numbers. I know that there is
trans_choice
but my message contains multiple number variables:"You have selected :n participants for a time slot with :m available spots."
So, it can be:
Is it possible to achieve with one translation key? Or the only way is to have one choice msg for single selected and one choice for multiple selected with 3 options in each of them (plural available, single available, no available)?
Beta Was this translation helpful? Give feedback.
All reactions