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

**URL:** <https://discourse.gohugo.io/t/language-settings-and-menu-configurations-for-different-languages-in-one-json-file/49895>\
**Category:** Using Themes\
**Tags:** i18n\
**Created:** [May 19, 2024, 1:48pm UTC](https://discourse.gohugo.io/t/language-settings-and-menu-configurations-for-different-languages-in-one-json-file/49895 "2024-05-19T13:48:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladimir\_dev](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@Vladimir\_dev](https://discourse.gohugo.io/u/Vladimir_dev)\
**Post date:** [May 19, 2024, 1:48pm UTC](https://discourse.gohugo.io/t/language-settings-and-menu-configurations-for-different-languages-in-one-json-file/49895/1 "2024-05-19T13:48:56Z")

</div>

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.

 ![lang](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/2/5/25b85db0de49f795f3b98950cf6cec9a8d7b822b.jpeg)

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [May 19, 2024, 1:56pm UTC](https://discourse.gohugo.io/t/language-settings-and-menu-configurations-for-different-languages-in-one-json-file/49895/2 "2024-05-19T13:56:42Z")

</div>

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:

[https://learnxinyminutes.com/docs/toml/](https://learnxinyminutes.com/docs/toml/)

Read about the config:

> **[Configure Hugo](https://gohugo.io/getting-started/configuration/#configuration-directory)**
>
> How to configure your Hugo site.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [May 21, 2024, 1:58pm UTC](https://discourse.gohugo.io/t/language-settings-and-menu-configurations-for-different-languages-in-one-json-file/49895/4 "2024-05-21T13:58:12Z")

</div>

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