i18next JSON files#
Distinto en la versión 4.15.1: Support for v4 variant of this format was added.
Consejo
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.
Nota
Weblate supports the i18next JSON v3 and v4 variants. Please choose correct file format matching your environment.
The v2 and v1 variants are mostly compatible with v3, with exception of how plurals are handled.
Ver también
JSON, i18next JSON Format, Updating target language files, Personalizar la salida de JSON, Limpieza de archivos de traducción
Archivo de ejemplo:
{
"hello": "Hello",
"apple": "I have an apple",
"apple_plural": "I have {{count}} apples",
"apple_negative": "I have no apples"
}
Configuración de Weblate#
Typical Weblate Configuración de componentes |
|
---|---|
Máscara de archivos |
|
Archivo de base monolingüe |
|
Plantilla para traducciones nuevas |
Empty |
Formato de archivo |
i18next JSON file v3 |