TOML¶
Adicionado na versão 5.15.
Nota
O suporte para esse formato está em desenvolvimento. Alguns recursos podem não estar disponíveis ainda e o comportamento pode mudar entre as versões. O feedback dos testes é bem-vindo.
TOML is a generic format like Arquivos YAML or Arquivos 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.
Ver também
Exemplo de arquivo:
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 ⓘ |
|
Configuração do Weblate¶
Configuração de componente típica do Weblate |
|
|---|---|
Máscara do arquivo |
|
Arquivo de idioma da base monolíngue |
|
Modelo para novas traduções |
Vazio |
Formato de arquivo |
TOML file |