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"
  }
}
対応機能

File extensions

.json

Linguality ⓘ

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 の設定

典型的な Weblate コンポーネント構成

ファイル マスク

src/lang/*.json

モノリンガル用の、基礎となる言語ファイル

src/extracted/en.json

新しい翻訳のテンプレート

Empty(空)

ファイル形式

Format.JS JSON ファイル