Format.JS JSON 檔案

在 5.4 版被加入.

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

範例檔案:

{
  "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"
  }
}
支援的功能

副檔名

.json

語言能力

單語和雙語

支援複數

No

支援描述

No

支援解釋

No

Supports context

No

Supports location

No

Supports flags

No

API 識別碼

formatjs

支援唯讀字串

No

Check flags added by this format

ICU MessageFormat

Weblate 配置

典型的 Weblate 組件配置

檔案遮罩

src/lang/*.json

單語的基底語言檔案

src/extracted/en.json

新翻譯的範本

空白

檔案格式

Format.JS JSON 檔案