# Language

**URL:** <https://discourse.gohugo.io/t/language/50478>\
**Category:** support\
**Created:** [June 29, 2024, 3:14am UTC](https://discourse.gohugo.io/t/language/50478 "2024-06-29T03:14:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RANCOX\_GAMES](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rancox_games/32/22397_2.png) [@RANCOX\_GAMES](https://discourse.gohugo.io/u/RANCOX_GAMES)\
**Post date:** [June 29, 2024, 3:14am UTC](https://discourse.gohugo.io/t/language/50478/1 "2024-06-29T03:14:39Z")

</div>

Hello my friends, how are you, I need the help of some expert, I happen to use the Coder template and in the blog part the language, for example, the date of the post is in Portuguese and I realized that there is a whole folder dedicated to In that language, what I want is to replace that folder where all the contents are in Portuguese and change it to Spanish, thank you

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/frjo/32/18626_2.png) [@frjo](https://discourse.gohugo.io/u/frjo)\
**Post date:** [June 29, 2024, 6:07am UTC](https://discourse.gohugo.io/t/language/50478/2 "2024-06-29T06:07:22Z")

</div>

Post a link to your repository and I’m sure we can help you out.

---

<div class="post-metadata">

**Author:** ![RANCOX\_GAMES](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rancox_games/32/22397_2.png) [@RANCOX\_GAMES](https://discourse.gohugo.io/u/RANCOX_GAMES)\
**Post date:** [June 29, 2024, 6:12am UTC](https://discourse.gohugo.io/t/language/50478/3 "2024-06-29T06:12:37Z")

</div>

> **[GitHub - r4nc0x/r4nc0x.github.io](https://github.com/r4nc0x/r4nc0x.github.io)**
>
> Contribute to r4nc0x/r4nc0x.github.io development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/frjo/32/18626_2.png) [@frjo](https://discourse.gohugo.io/u/frjo)\
**Post date:** [June 29, 2024, 6:44am UTC](https://discourse.gohugo.io/t/language/50478/4 "2024-06-29T06:44:38Z")

</div>

You have set up your site with English as the main language and added Brasilian Portuguese (pt-br) as a second language. Looks like you copied the “exampleSite” of the theme straight of.

The code for Spanish is “es” so if you want Spanish on your site as well do the same thing for “es” as you have done for “pt-br”.

In “config.toml” find all the places where “pt-br” is mentioned and replace with “es”.

Inside content directory you find files like “about.md” vs about.pt-br.md". That is the English vs the Brasilian Portuguese about page.

If you want a Spanish about page you create “about.es.md”.

See more in the documentation [Multilingual mode | Hugo](https://gohugo.io/content-management/multilingual/)

Instead of adding the language to the file name you can use sub directories for languges. The end result (i.e. the web site) is the same so it up how one likes to organise the content.

---

<div class="post-metadata">

**Author:** ![RANCOX\_GAMES](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rancox_games/32/22397_2.png) [@RANCOX\_GAMES](https://discourse.gohugo.io/u/RANCOX_GAMES)\
**Post date:** [June 29, 2024, 6:46am UTC](https://discourse.gohugo.io/t/language/50478/5 "2024-06-29T06:46:30Z")

</div>

I’ll do it right away and test it, wait a moment and I’ll let you know if there were any changes.

---

<div class="post-metadata">

**Author:** ![RANCOX\_GAMES](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rancox_games/32/22397_2.png) [@RANCOX\_GAMES](https://discourse.gohugo.io/u/RANCOX_GAMES)\
**Post date:** [June 29, 2024, 6:52am UTC](https://discourse.gohugo.io/t/language/50478/6 "2024-06-29T06:52:46Z")

</div>

thanks for the help it worked

---

<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:** [July 1, 2024, 6:53am UTC](https://discourse.gohugo.io/t/language/50478/7 "2024-07-01T06:53:19Z")

</div>

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