Fichiers i18next JSON¶
Modifié dans la version 4.15.1: Ajout du support de la variante v4 de ce format.
Indication
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.
Voir aussi
Fichier d’exemples :
{
"hello": "Hello",
"apple": "I have an apple",
"apple_plural": "I have {{count}} apples",
"apple_negative": "I have no apples"
}
File extensions |
|
|---|---|
Linguality ⓘ |
Both monolingual and bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Check flags added by this format ⓘ |
File extensions |
|
|---|---|
Linguality ⓘ |
Both monolingual and bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Check flags added by this format ⓘ |
Configuration Weblate¶
Configuration des composants typique de Weblate |
|
|---|---|
Masque de fichier |
|
Fichier de langue de base mono-langue |
|
Modèle pour les nouvelles traductions |
Vide |
Format de fichier |
` Fichier i18next JSON` |