File Format.JS JSON

Added in version 5.4.

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

Example file:

{
  "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"
  }
}
Funzionalità supportate

Estensioni dei file

.json

Linguality ⓘ

Both monolingual and bilingual

Supports plural ⓘ

No

Supports descriptions ⓘ

Yes

Supports explanation ⓘ

No

Supports context ⓘ

No

Supports location ⓘ

No

Supports flags ⓘ

No

API identifier

formatjs

Supports read-only strings ⓘ

No

Supports removing obsolete strings ⓘ

No

Check flags added by this format ⓘ

ICU MessageFormat

Configurazione Weblate

Typical Weblate Component configuration

Maschera del file

src/lang/*.json

File di lingua a base monolingue

src/extracted/en.json

Modello per le nuove traduzioni

Empty

Formato file

Format.JS JSON file