ICU MessageFormat — Advanced Patterns Vocabulary
5 exercises — 5 exercises practising ICU MessageFormat plural rules, select expressions, nested patterns, and date/number format skeletons.
A developer asks: "Why do we need ICU MessageFormat for plurals? Can't we just do count === 1 ? 'item' : 'items'?" Which explanation is correct?
CLDR (Common Locale Data Repository) defines plural categories per language. Arabic: zero (0 items), one (1 item), two (2 items), few (3-10 items), many (11-99 items), other (100+ items) — six completely different phrase forms. Polish: one (1 item), few (2-4, 22-24, ... items), many (5-21, 25-31, ... items), other. English: one (1 item), other (everything else) — only two forms. ICU MessageFormat lets a single pattern in the source language be translated into language-appropriate plural forms by the translator: {count, plural, one {# item} other {# items}} in English becomes 6 cases in Arabic — handled correctly by the ICU runtime for each locale.
Key vocabulary:
• CLDR plural categories — zero/one/two/few/many/other; the universal plural form taxonomy across all languages
• plural rule — the mathematical rule determining which category applies for a given number in a specific language
• ICU runtime — the library evaluating ICU patterns at runtime with actual count values
Frequently Asked Questions
What will I practise in "ICU MessageFormat — Advanced Patterns Vocabulary — Localization Engineering | CoderLingo"?
5 exercises practising ICU MessageFormat plural rules, select expressions, nested patterns, and date/number format skeletons.
How many exercises are in this module?
This module has 5 multiple-choice exercises, each with instant feedback and a full explanation of the correct answer.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is free to use with no account, sign-up, or paywall.
Do I need to create an account to do these exercises?
No account is required. Just click an option to answer — your score for this session is tracked automatically in the progress bar above.
What happens if I choose the wrong answer?
You'll immediately see which answer was correct, plus a full explanation covering the vocabulary and reasoning behind it — mistakes are where most of the learning happens.
Can I retry the exercises if I want a higher score?
Yes — use the "Try again" button on the results screen to reset and go through all the questions again.
Is my progress saved if I close the page?
No. Progress is tracked only for your current visit; reloading or leaving the page resets the counter. This keeps the exercise simple and account-free.
Where can I find more Localization Engineering Language exercises?
Browse the full Localization Engineering Language hub for related drills, or check the "Next up" link below to continue with a connected topic.
How is this different from reading an article on the same topic?
Articles explain vocabulary and concepts in prose; this exercise tests and reinforces that vocabulary through active recall with immediate feedback — the two work best together.
Who writes these exercises?
Every exercise is written by the CoderSlingo team, drawing on real workplace English used in IT roles, then reviewed for accuracy and clarity.