<a id="js-i18next"></a>

<a id="i18next"></a>

<a id="i18nextv4"></a>

# Fichiers i18next JSON

<a id="index-0"></a>

#### Versionchanged
Modifié dans la version 4.15.1: Ajout du support de la variante v4 de ce format.

#### HINT
In case you use plurals, it is recommended to use v4 as that aligned plural
handling with CLDR. Older versions have different plural rules for some
languages which are not correct.

i18next is an internationalization framework written in and for JavaScript.
Weblate supports its localization files with features such as plurals.

i18next translations are monolingual, so it is recommended to specify a base file
with (what is most often the) English strings.

## Fichier i18next JSON v4

En cas de doute, choisir ce format. Il stocke les pluriels en utilisant les suffixes standard CLDR.

## Fichier i18next JSON v3

Utilisé sur les anciens projets où les suffixes numériques servent au pluriel.

#### NOTE
The v2 and v1 variants are mostly compatible with v3, with exception of how
plurals are handled.

#### SEE ALSO
* [JSON](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/json.html)
* [https://www.i18next.com/](https://www.i18next.com/)
* [i18next JSON Format](https://www.i18next.com/misc/json-format)
* [Mise à jour des fichiers de langue cible](https://docs.weblate.org/fr/weblate-2026.10.1/devel/integration.md#updating-target-files)
* [Personnaliser la sortie JSON](https://docs.weblate.org/fr/weblate-2026.10.1/admin/addons.md#addon-weblate-json-customize)
* [Nettoyer les fichiers de traduction](https://docs.weblate.org/fr/weblate-2026.10.1/admin/addons.md#addon-weblate-cleanup-generic)

Fichier d’exemples :

```json
{
  "hello": "Hello",
  "apple": "I have an apple",
  "apple_plural": "I have {{count}} apples",
  "apple_negative": "I have no apples"
}
```

<!-- AUTOGENERATED START: format-features i18nextv4 -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Fonctionnalités prises en charge

| File extensions                                                                                      | `.json`                                                                                          |
|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| Linguality [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#bimono)                                   | Both monolingual and bilingual                                                                   |
| Supports plural [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-plurals)                      | `Yes`                                                                                            |
| Supports descriptions [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-description)            | `No`                                                                                             |
| Supports explanation [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-explanation)             | `No`                                                                                             |
| Supports context [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-context)                     | `No`                                                                                             |
| Supports location [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-location)                   | `No`                                                                                             |
| Supports flags [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-flags)                         | `No`                                                                                             |
| API identifier                                                                                       | `i18nextv4`                                                                                      |
| Supports read-only strings [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#read-only-strings)        | `No`                                                                                             |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#obsolete-strings) | `No`                                                                                             |
| Check flags added by this format [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/admin/checks.md#custom-checks)      | [Interpolation i18next](https://docs.weblate.org/fr/weblate-2026.10.1/user/checks.md#check-i18next-interpolation) |
<!-- AUTOGENERATED END: format-features i18nextv4 -->
<!-- AUTOGENERATED START: format-features i18next -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Fonctionnalités prises en charge

| File extensions                                                                                      | `.json`                                                                                          |
|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| Linguality [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#bimono)                                   | Both monolingual and bilingual                                                                   |
| Supports plural [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-plurals)                      | `Yes`                                                                                            |
| Supports descriptions [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-description)            | `No`                                                                                             |
| Supports explanation [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-explanation)             | `No`                                                                                             |
| Supports context [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-context)                     | `No`                                                                                             |
| Supports location [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-location)                   | `No`                                                                                             |
| Supports flags [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#format-flags)                         | `No`                                                                                             |
| API identifier                                                                                       | `i18next`                                                                                        |
| Supports read-only strings [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#read-only-strings)        | `No`                                                                                             |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/formats.md#obsolete-strings) | `No`                                                                                             |
| Check flags added by this format [ⓘ](https://docs.weblate.org/fr/weblate-2026.10.1/admin/checks.md#custom-checks)      | [Interpolation i18next](https://docs.weblate.org/fr/weblate-2026.10.1/user/checks.md#check-i18next-interpolation) |
<!-- AUTOGENERATED END: format-features i18next -->

## Configuration Weblate

|                                       | [Configuration des composants](https://docs.weblate.org/fr/weblate-2026.10.1/admin/projects.md#component) typique de Weblate   |
|---------------------------------------|------------------------------------------------------------------------------------------------------------|
| Masque de fichier                     | `langs/*.json`                                                                                             |
| Fichier de langue de base mono-langue | `langs/en.json`                                                                                            |
| Modèle pour les nouvelles traductions | Vide                                                                                                       |
| Format de fichier                     | \` Fichier i18next JSON\`                                                                                  |
