Format.JS JSON 文件

Added in version 5.4.

翻译 Format.JS 和 React-Intl 程序时所用的文件格式。

示例文件:

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

Linguality

单语和双语

支持复数

No

支持描述

No

支持解释

No

支持上下文

No

支持位置

No

支持标记

No

API 标识符

formatjs

支持只读字符串

No

Check flags added by this format

ICU MessageFormat

Weblate 配置

典型的 Weblate 部件配置

文件掩码

src/lang/*.json

单语言译文模版语言文件

src/extracted/en.json

新语种的翻译模版

文件格式

Format.JS JSON 文件