ICU Message Formatter & Editor
Build, test, and validate ICU MessageFormat strings with live preview, 100+ templates, and multi-language CLDR plural validation.
Templates50
ICU Editor
Valid Syntax
14 characters1 lines
Test Variables & Live Preview
Adjust variables and switch languages to verify CLDR plural rules
Locale:
Rendered Output (en):
Hello, Alex!
Export to Intlayer Type-Safe Declaration
Intlayer validates translations at compile-time with full TypeScript autocomplete.
ICU MessageFormat Syntax Cheat Sheet
Quick syntax rules and how each pattern maps to Intlayer's type-safe declarations
| Feature | Syntax | Example | Notes | Intlayer Equivalent |
|---|---|---|---|---|
| Simple Variable | {variableName} | Hello {name}! | Alphanumeric names, single brackets | {{name}} |
| Pluralization | {count, plural, one {...} other {...}} | {n, plural, one {# item} other {# items}} | Requires "other". # is replaced by count. | plural({ one: "1 item", other: "{{count}} items" }) |
| Exact Match Plural | =0 {...} =1 {...} | {n, plural, =0 {None} one {#} other {#}} | Takes precedence over CLDR keywords | enu({ 0: "None", 1: "1", fallback: "{{count}}" }) |
| Select (Context/Gender) | {key, select, choice1 {...} other {...}} | {gender, select, male {He} other {They}} | Case-sensitive exact string comparison | select({ male: "He", fallback: "They" }, "gender") |
| Selectordinal | {rank, selectordinal, one {#st} other {#th}} | {pos, selectordinal, one {#st} two {#nd} other {#th}} | Ordinal suffix rules per CLDR | enu({ 1: "1st", 2: "2nd", fallback: "{{pos}}th" }) |
| Number Formatting | {val, number, [style]} | {price, number, currency} | Supports percent, currency, integer styles | Intl.NumberFormat or type-safe formatting |
| Escaping | '{' and '' for apostrophes | Don''t '{'escape'}' | Single quotes escape literal blocks, '' escapes quote | Literal strings naturally supported |
Intlayer compiler-driven architecture replaces complex runtime message parsing with compile-time type-safety and automated extraction.
Intlayer Ecosystem
Never Worry About Complex Syntax Again
Intlayer turns internationalization into a joyful developer experience with compile-time type-safety, automatic component extraction, and seamless CMS integration.