Comment on Improving support for plurals in localisations
For Developers
There's no requirement to support pluralized strings in your templates — they are opt-in, but they are fairly easy to support.
Where you would normally write a translation string like so:
{
...
"foo": "%1 bar(s)"
...
}
You will instead put in an "ICU Plural" string that looks like this:
{
...
"foo": "{count, plural, one {{count} bar} other {{count} bars}}"
...
}
Comma separated:
countis the variable substitution you'll use in the latter half of the stringpluralis hardcoded, it's alwaysplural- Then the forms:
onedenotes the singular form in the proceeding bracesotherdenotes the plural form (in English) in the next set of braces