Pluralization Rules Across Languages
What you'll learn: You'll discover how to handle plural forms correctly across languages that use different pluralization rules beyond simple singular/plural distinctions.
The Problem with "One Size Fits All"
In English, pluralization seems simple: 1 item vs. 0, 2, or more items. But this is far from universal. Different languages have wildly different pluralization rules:
- Arabic has six forms: zero, one, two, few, many, and other
- Polish has three distinct plural forms based on numeric patterns
- Japanese has no plural distinction at all
- Russian changes based on whether a number ends in 1, 2-4, or other digits
When you interpolate numbers into translated strings like "You have 3 messages," the structure must adapt to the target language's rules.
The Pluralization Categories
Most i18n libraries use the CLDR (Common Locale Data Repository) standard, which defines these categories:
zero– exactly zero (Arabic, Latvian)one– singular formtwo– exactly two (Arabic, Welsh)few– small quantities (Polish: 2-4, Russian: 2-4 when not ending in teens)many– larger quantities or fractional (Polish: 5+, Arabic: 11-99)other– catchall/default form
How It Works in Practice
Instead of providing just singular/plural translations, you provide keys for each relevant category:
{
"messages": {
"one": "You have {{count}} message",
"other": "You have {{count}} messages"
}
}
For languages with more complex rules, you'd add few, many, etc. The i18n library automatically selects the correct form based on the locale's pluralization rules and the numeric value.
Key Takeaway: Use i18n libraries that support CLDR plural categories (one, few, many, other, zero, two) rather than assuming binary singular/plural logic—this ensures correct grammar across all target languages.