-
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
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.
const ruCardinalRules = new Intl.PluralRules("ru-RU");
ruCardinalRules.select(0) // many
ruCardinalRules.select(1) // one
ruCardinalRules.select(2) // few
ruCardinalRules.select(100) // manyWe 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:яблок}}'
IgorSzymanski and vchirikov
Metadata
Metadata
Assignees
Labels
No labels