JSON-Datei Format.JS

Added in version 5.4.

Dateiformat, das beim Übersetzen von Format.JS- und React-Intl-Anwendungen verwendet wird.

Beispieldatei:

{
   {
  "hak27d": {
    "defaultMessage": "Control Panel",
    "description": "title of control panel section"
  },
  "haqsd": {
    "defaultMessage": "Delete user {name}",
    "description": "delete button"
  },
  "19hjs": {
    "defaultMessage": "New Password",
    "description": "placeholder text"
  },
  "explicit-id": {
    "defaultMessage": "Confirm Password",
    "description": "placeholder text"
  }
}

Weblate-Konfiguration

Typische Weblate-Komponentenkonfiguration

Dateimaske

src/lang/*.json

Einsprachige Basissprachdatei

src/extracted/en.json

Vorlage für neue Übersetzungen

Leer

Dateiformat

JSON-Datei Format.JS