TOML¶
Added in version 5.15.
注釈
この形式への対応は開発中です。一部の機能はまだ使用できないません。動作はリリース間で変更することがあります。テスト結果のフィードバックは歓迎します。
TOML は YAML ファイル や JSON ファイル と同様の汎用的な形式であり、アプリケーションの現地語化にも使用できます。
Weblate が対応している TOML の種類:
- TOML ファイル
複数形に対応していない、プレーンな TOML ファイルです。
- go-i18n TOML ファイル
複数形に対応した go-i18n 向けです。
ファイルの例:
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"
File extensions |
|
|---|---|
Linguality ⓘ |
Monolingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Weblate の設定¶
典型的な Weblate コンポーネント構成 |
|
|---|---|
ファイル マスク |
|
モノリンガル用の、基礎となる言語ファイル |
|
新しい翻訳のテンプレート |
Empty(空) |
ファイル形式 |
TOML ファイル |