Fitxer JSON de Format.JS

Afegit a la versió 5.4.

Format de fitxer utilitzat en traduir aplicacions Format.JS i React-Intl.

Fitxer d’exemple:

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

Lingualitat ⓘ

Both monolingual and bilingual

Supports plural ⓘ

No

Supports descriptions ⓘ

Yes

Admet l’explicació ⓘ

No

Supports context ⓘ

No

Supports location ⓘ

No

Supports flags ⓘ

No

API identifier

formatjs

Admet cadenes de només lectura ⓘ

No

Supports removing obsolete strings ⓘ

No

Check flags added by this format ⓘ

MessageFormat d’ICU

Configuració del Weblate

Placa web típica Configuració dels components

Filtre de fitxers

src/lang/*.json

Fitxer de llengua base monolingüe

src/extracted/en.json

Plantilla per a traduccions noves

«Buit».

Format de fitxer

Format.JS JSON file