i18next Message Formatter & Editor
Format and test i18next strings with double-brace interpolation, plural suffixes (_one, _other), context keys, and nesting.
Templates14
I18NEXT Editor
Valid Syntax
40 characters1 lines
Test Variables & Live Preview
Adjust variables and switch languages to verify CLDR plural rules
Locale:
Rendered Output (en):
Hello Sarah, welcome to our platform!
Export to Intlayer Type-Safe Declaration
Intlayer validates translations at compile-time with full TypeScript autocomplete.
i18next Syntax Cheat Sheet
Quick syntax rules and how each pattern maps to Intlayer's type-safe declarations
| Feature | Syntax | Example | Notes | Intlayer Equivalent |
|---|---|---|---|---|
| Interpolation | {{variableName}} | Hello {{user.name}}! | Double curly braces, supports dot paths | {{user.name}} |
| Unescaped HTML | {{- rawVar}} | Visit {{- url}} | Disables HTML escaping for raw markup | html(...) or Markdown |
| Plural Keys | key_one, key_other | "item_one": "1 item", "item_other": "{{count}} items" | Suffix keys based on count parameter | plural({ one: "1 item", other: "{{count}} items" }) |
| Context Suffix | key_context | "friend_female": "Girlfriend" | Key appended with context parameter | select({ female: "Girlfriend", fallback: "Friend" }) |
| Nesting | $t(nested.key) | Welcome, $t(common.brand) | Reuses other translation keys | Direct object property reuse in TS |
| Formatting | {{val, format}} | {{date, YYYY-MM-DD}} | Passes value through custom formatters | Standard JavaScript/TypeScript helper |
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.