Format.JS JSON-fil

Added in version 5.4.

Filformat som används vid översättning av Format.JS- och React-Intl-applikationer.

Exempelfil:

{
  "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"
  }
}
Stödda funktioner

File extensions

.json

Språkkunskaper ⓘ

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

Weblate-konfiguration

Typisk Weblate Komponentkonfiguration

Filmask

src/lang/*.json

Enspråkig basspråkfil

src/extracted/en.json

Mall för nya översättningar

Tom

Filformat

Format.JS JSON-fil