TOML

Added in version 5.15.

注釈

この形式への対応は開発中です。一部の機能はまだ使用できないません。動作はリリース間で変更することがあります。テスト結果のフィードバックは歓迎します。

TOML is a generic format like YAML ファイル or JSON ファイル and can be used to localize applications.

Weblate supports TOML in several variants:

TOML file

Plain TOML file without support for plurals.

go-i18n TOML file

go-i18n variant with plurals support.

ファイルの例:

hello = "Ahoj světe!\n"
orangutan = "Orangutan má %d banán.\n"
thanks = "Děkujeme za použití Weblate."
try = "Zkus Weblate na <https://demo.weblate.org/>!\n"
[hello]
other = "Ahoj světe!\n"

[orangutan]
one = "Orangutan má %d banán.\n"
other = "Orangutan má %d banány.\n"

[thanks]
other = "Děkujeme za použití Weblate."

[try]
other = "Zkus Weblate na <https://demo.weblate.org/>!\n"

Weblate の設定

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

ファイル マスク

langs/*.toml

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

langs/en.toml

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

Empty(空)

ファイル形式

TOML file