1. Help Center
  2. Supported formats

i18next

An exploration into i18next and the way it works for localization and internationalization.

File Extensions .json
API Extension i18next
Import Yes
Export Yes
Pluralization supported? Yes
Descriptions supported? No


I18next is a JavaScript library that provides easy-to-use localization and internationalization solutions for various environments based on JavaScript. As one of the oldest l10n/i18n libraries, it supports standard i18n library features, such as interpolation and plurals, and works well with async requests. With proper configuration, it can detect browser language settings to automatically load locale-specific data. 

Like other JavaScript l10n/i18n libraries, i18next uses JSON format to store translations. Strings pending translation are either placed at the value directly or nested inside of another object (e.g. interpolated values). For translation, you need to make sure that all variables are kept intact.

Code Sample 

{
  "boolean_key": "--- true\n",
  "empty_string_translation": "",
  "key_with_description": "Check it out! This key has a description! (At least in some formats)",
  "key_with_line-break": "This translations contains\na line-break.",
  "nested": {
    "deeply": {
      "key": "I'm a deeply nested key."
    },
    "key": "This key is nested inside a namespace."
  },
  "null_translation": "",
  "sample_collection": [
    "first item",
    "second item",
    "third item"
  ],
  "simple_key": "simple key, simple message, so simple.",
  "unverified_key": "This translation is not yet verified and waits for it. (In some formats we also export this status)",
  "pluralized_key": "Only one pluralization found.",
  "pluralized_key_plural": "Wow, you have %s pluralizations!"
}

What is supported?

i18next offers a lot of functionality. We fully support

  • Pluralizations
  • Namespaces
  • Arrays

What is not supported?

Interval Pluralizations are persisted as normal key values. There is no support in the UI.

Nesting / Variable replacement is not supported directly. However, placeholders can be activated. We currently do not support cross-referencing keys from within values. There is no support in the UI.

More Information