i18n formats
Locize supports a wide range of internationalization (i18n) formats to fit your project’s needs. Each format comes with specific features to help you maintain correct syntax and streamline your localization workflow.
If you need a format that isn’t listed here, send us an email; we’re always working to extend our supported formats!
The chosen i18n format will always be respected. There is no format conversion when importing or exporting file formats. Learn more about i18n formats in this blog post.
Supported Formats & Features
| Format | Syntax Highlighting | Plural Conversion | Grouping | More Info |
|---|---|---|---|---|
| i18next / locizify | ✅ | ✅ | ✅ | i18next / locizify |
| MessageFormat v1 | ✅ | not necessary, solved directly in format | MessageFormat v1 | |
| MessageFormat v2 | ✅ | not necessary, solved directly in format | MessageFormat v2 | |
| fluent | ✅ | not necessary, solved directly in format | fluent | |
| vue-i18n | ✅ | not necessary, solved directly in format | vue-i18n | |
| i18n.js / ruby | ✅ | ✅ | ✅ | i18n.js |
| polyglot.js | ✅ | not necessary, solved directly in format | polyglot.js | |
| android | ✅ | ✅ | ✅ | android |
Feature Details
- Syntax Highlighting: Format-specific syntax is highlighted for easier editing.
- Plural Conversion: Plurals are automatically generated as needed (where supported).
- Grouping: Segments are grouped by plurals and context (where supported).
i18next / locizify
- See V4 JSON format and V3 JSON format for details.
MessageFormat v1 (ICU)
- Arguments in single braces (
{name}), plurals and selects inside the message:{count, plural, one {# file} other {# files}}. - For i18next: i18next-icu.
MessageFormat v2
- The Unicode standard of MessageFormat: variables with a
$({$name}), functions like{$count :number}, plurals and selects through.matchwith variants, each pattern in{{…}}:.input {$count :number} .match $count one {{You have {$count} file}} * {{You have {$count} files}} - Locize checks the syntax as the runtime does, highlights it in the editor, and checks the plural keys of every
:numberor:integerselector against each language's plural categories (the catch-all*counts asother). - MessageFormat v1 values are not converted:
{name}in MessageFormat v2 is a literal text, not a variable. - For i18next: i18next-mf2.
fluent
- For i18next: i18next-fluent.