Docs: add note on translatePlural plural rules and language support
What this MR does
Adds a note to the translatePlural section in packages/gitlab-ui/doc/contributing/translation.md.
Why
The section currently describes the default behavior as "singular if n === 1, otherwise plural" without noting that this is the English rule only. In many languages, the one plural category covers more than just 1. In French, 0 uses one. In Ukrainian, any number ending in 1 except 11 uses one (21, 31, 41, and so on). A component using translatePlural without a consumer override will produce incorrect output for those languages.
The note explains the limitation, shows the setConfigs + n__() override as the correct approach for full language support, and flags the risk of hardcoding a number in the singular form.
Related:
- Follow-up to gitlab-org/gitlab!234875 (merged) which adds
doc/development/i18n/pluralization.md - Unicode CLDR Plural Rules
Related items:
Edited by Oleksandr Pysaryuk