Language settings and menu configurations for different languages in one JSON file

Is it possible to use common language settings and menu settings for each language not in separate files, but in one JSON file? Because then it’s easier to check for errors with AI, which you might sometimes not notice, especially when there are many languages.

Those are TOML files, not JSON files. And yes, it’s possible. put all menu.LANGUAGE.toml files into menu.toml. Or put all files with proper headers into hugo.toml.

Of course it needs to be something along the lines of [menus.en.main] instead of [main] depending on where you are adding the config.

Read about TOML:

Read about the config:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.