Fichier JSON Format.JS

Ajouté dans la version 5.4.

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

Fichier d’exemples :

{
  "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"
  }
}
Fonctionnalités prises en charge

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

Check flags added by this format

ICU MessageFormat

Configuration Weblate

Configuration des composants typique de Weblate

Masque de fichier

src/lang/*.json

Fichier de langue de base mono-langue

src/extracted/en.json

Modèle pour les nouvelles traductions

Vide

Format de fichier

Fichier JSON Format.JS