...
While the English language only has two forms (one – month, other – months ), other languages can have up to 6 forms (e.g. Polish: one – miesiąc, few – miesiące, many – miesięcy, other – miesiąca). The ICU plurals syntax allows you to encode multiple versions of a particular sentence, depending on the value of a number variable. This is especially useful in the localization industry.
Example Sample syntax looks as follows:
Code Block | ||
---|---|---|
| ||
{num, plural, zero {Selected {num} items} one {Selected {num} item} two {Selected {num} items} few {Selected {num} items} many {Selected {num} items} other {Selected {num} items}} |
...