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
In russian, we have 3 forms of plurals. And there is no way to describe it with typesafe-i18n.
construCardinalRules=newIntl.PluralRules("ru-RU");ruCardinalRules.select(0)// manyruCardinalRules.select(1)// one ruCardinalRules.select(2)// few ruCardinalRules.select(100)// many
We can describe it as 'one' | 'few' | 'many'.
None of overloads enumerated in docs fits russian usecase. The only way i found is use full syntax with random strings
'У меня есть {0} {{empty|яблоко|empty|яблока|яблок|empty}}'
I think we need some syntax to selectively describe only needed forms. It could look something like this
'У меня есть {0} {{one:яблоко|few:яблока|many:яблок}}'
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
-
In russian, we have 3 forms of plurals. And there is no way to describe it with
typesafe-i18n
.We can describe it as
'one' | 'few' | 'many'
.None of overloads enumerated in docs fits russian usecase. The only way i found is use full syntax with random strings
'У меня есть {0} {{empty|яблоко|empty|яблока|яблок|empty}}'
I think we need some syntax to selectively describe only needed forms. It could look something like this
Beta Was this translation helpful? Give feedback.
All reactions