i18next-JSON-Dateien#

Geändert in Version 4.15.1: Unterstützung für die v4-Variante dieses Formats hinzugefügt.

Hinweis

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-Übersetzungen sind einsprachig, daher ist es empfehlenswert, eine Basisdatei mit (meist) englischen Zeichenketten anzugeben.

Bemerkung

Weblate unterstützt die Varianten i18next JSON v3 und v4. Bitte wählen Sie das richtige Dateiformat für Ihre Einsatzumgebung.

Die Varianten v2 und v1 sind größtenteils kompatibel mit v3, mit Ausnahme der Behandlung von Pluralformen.

Beispieldatei:

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

Weblate-Konfiguration#

Typical Weblate Komponentenkonfiguration

Dateimaske

langs/*.json

Einsprachige Basis-Sprachdatei

langs/en.json

Vorlage für neue Übersetzungen

Leer

Dateiformat

i18next-JSON-Datei v3