YAML 文件

带有字符串键和值的纯YAML文件。Weblate还从列表或字典中提取字符串。

Weblate 目前支持几种 YAML 翻译的变体:

YAML 文件示例:

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

文件扩展名

.yml

Linguality

单语和双语

支持复数

No

支持描述

No

支持解释

No

支持上下文

No

支持位置

No

支持标记

No

API 标识符

yaml

支持只读字符串

No

Weblate 配置

典型的 Weblate 部件配置

文件掩码

translations/messages.*.yml

单语言译文模版语言文件

translations/messages.en.yml

新语种的翻译模版

文件格式

YAML 文件

文件格式参数

yaml_* 模式的 文件格式参数 可用来配置 YAML 格式的行为。