Plik JSON Format.JS

Added in version 5.4.

File format used when translating Format.JS and React-Intl applications.

Przykładowy plik:

{
   {
  "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"
  }
}

Konfiguracja Weblate

Typowy Weblate Konfiguracja komponentu

Maska pliku

src/lang/*.json

Jednojęzyczny bazowy plik języka

src/extracted/en.json

Szablon dla nowych tłumaczeń

Puste

Format pliku

Format.JS JSON file