Fișiere i18next JSON

Schimbat în versiunea 4.15.1: Support for v4 variant of this format was added.

Sugestie

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.

Traducerile i18next sunt monolingve, așa că este recomandat să specificați un fișier de bază cu (ceea ce este cel mai adesea) șiruri de caractere în limba engleză.

Fișier JSON i18next v4

Choose this format if unsure. It stores plurals using standard CLDR suffixes.

Fișier JSON i18next v3

Use for legacy projects which are using numeric suffixes for plurals.

Notă

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

Exemplu de fișier:

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

File extensions

.json

Linguality

Both monolingual and bilingual

Supports plural

Yes

Supports descriptions

No

Supports explanation

No

Supports context

No

Supports location

No

Supports flags

No

API identifier

i18nextv4

Supports read-only strings

No

Check flags added by this format

Interpolare i18next

Supported features

File extensions

.json

Linguality

Both monolingual and bilingual

Supports plural

Yes

Supports descriptions

No

Supports explanation

No

Supports context

No

Supports location

No

Supports flags

No

API identifier

i18next

Supports read-only strings

No

Check flags added by this format

Interpolare i18next

Configurație Weblate

Tipic Weblate Configurația componentei

Mască de fișier

langs/*.json

Fișier de limbă de bază monolingvă

langs/en.json

Șablon pentru traduceri noi

Gol

Format fișier

i18next JSON file v3