Format.JS JSON file

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"
  }
}
Supported features

File extensions

.json

Linguality ⓘ

Both monolingual and bilingual

Supports plural ⓘ

No

Supports descriptions ⓘ

No

Supports explanation ⓘ

No

Supports context ⓘ

No

Supports location ⓘ

No

Supports flags ⓘ

No

API identifier

formatjs

Supports read-only strings ⓘ

No

Weblate configuration

Typical Weblate Component configuration

File mask

src/lang/*.json

Monolingual base language file

src/extracted/en.json

Template for new translations

Empty

File format

Format.JS JSON file