Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

localization in .itch.toml and butler validate

A topic by 3stadt created Jun 20, 2021 Views: 302 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi everyone!

I’m trying to add custom actions to my .itch.toml app manifest.

It works, what doesn’t work is the translation. Even with the bare example mentioned in the documentation I get this error when running butler validate .:

∙ Validating 161 B manifest at (.itch.toml)
error: Decoding error:
decoding manifest: 2 error(s) decoding:

* 'Actions[0].Locales[de]' expected a map, got 'slice'
* 'Actions[0].Locales[fr]' expected a map, got 'slice'

Am I doing something wrong or is this functionality currently not working as described in the documentation?

Kind regards, 3stadt

For reference, this happens when running validate on a .itch.toml file containing only this:

[[actions]]
name = "Let's go already!"
path = "FooBar.exe"

[[actions.locales.fr]]
name = "Allons-y!"

[[actions.locales.de]]
name = "Gehen wir bereits!"