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
Originally posted by dilame December 18, 2023
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:яблок}}'
The text was updated successfully, but these errors were encountered:
Discussed in #753
Originally posted by dilame December 18, 2023
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
The text was updated successfully, but these errors were encountered: