i18next JSON datoteke¶
Promijenjeno u verziji 4.15.1: Support for v4 variant of this format was added.
Savjet
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.
i18next JSON datoteka v4¶
Choose this format if unsure. It stores plurals using standard CLDR suffixes.
i18next JSON datoteka v3¶
Use for legacy projects which are using numeric suffixes for plurals.
Napomena
The v2 and v1 variants are mostly compatible with v3, with exception of how plurals are handled.
Više informacija
Example file:
{
"hello": "Hello",
"apple": "I have an apple",
"apple_plural": "I have {{count}} apples",
"apple_negative": "I have no apples"
}
Datotečni sufiks |
|
|---|---|
Jezičnost ⓘ |
Jednojezične i dvojezične |
Podržava množinu ⓘ |
|
Podržava opise ⓘ |
|
Podržava objašnjenja ⓘ |
|
Podržava kontekst ⓘ |
|
Podržava mjesto ⓘ |
|
Podržava oznake ⓘ |
|
Identifikator API-ja |
|
Podržava izraze koji su samo-za-čitanje ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Provjeri oznake koje je dodao ovaj format ⓘ |
Datotečni sufiks |
|
|---|---|
Jezičnost ⓘ |
Jednojezične i dvojezične |
Podržava množinu ⓘ |
|
Podržava opise ⓘ |
|
Podržava objašnjenja ⓘ |
|
Podržava kontekst ⓘ |
|
Podržava mjesto ⓘ |
|
Podržava oznake ⓘ |
|
Identifikator API-ja |
|
Podržava izraze koji su samo-za-čitanje ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Provjeri oznake koje je dodao ovaj format ⓘ |
Weblate konfiguracija¶
Typical Weblate Konfiguracija komponente |
|
|---|---|
Maska datoteke |
|
Jednojezična datoteka osnovnog jezika |
|
Predložak za nove prijevode |
Empty |
Format datoteke |
i18next JSON file v3 |