YAML 檔案

The plain YAML files with string keys and values. Weblate also extract strings from lists or dictionaries.

Weblate 目前支援 YAML 翻譯的幾個變體:

YAML 檔案範例:

weblate:
  hello: ""
  orangutan: ""
  try: ""
  thanks: ""
支援的功能

副檔名

.yml

語言能力 ⓘ

單語言和雙語言

支援複數 ⓘ

No

支援描述 ⓘ

No

支援解釋 ⓘ

No

Supports context ⓘ

No

Supports location ⓘ

No

Supports flags ⓘ

No

API 識別碼

yaml

支援唯讀字串 ⓘ

No

Weblate 配置

典型的 Weblate 組件配置

檔案遮罩

translations/messages.*.yml

單語言基底語言檔案

translations/messages.en.yml

新翻譯的範本

空白

檔案格式

YAML 檔案

檔案格式參數

檔案格式參數 with the pattern yaml_* can be used to configure the behavior of the YAML format.