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

Weblate 設定組態#

典型的 Weblate 組件組態

檔案遮罩

src/lang/*.json

單語的基底語言檔

src/extracted/en.json

新翻譯的模板

Empty

檔案格式

Format.JS JSON file