# Default language not sticking

**URL:** <https://discourse.gohugo.io/t/default-language-not-sticking/55049>\
**Category:** support\
**Tags:** i18n\
**Created:** [June 13, 2025, 10:04am UTC](https://discourse.gohugo.io/t/default-language-not-sticking/55049 "2025-06-13T10:04:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrHinsh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mrhinsh/32/23018_2.png) [@MrHinsh](https://discourse.gohugo.io/u/MrHinsh)\
**Post date:** [June 13, 2025, 10:04am UTC](https://discourse.gohugo.io/t/default-language-not-sticking/55049/1 "2025-06-13T10:04:00Z")

</div>

This must be a configuration issue but I just cant see it.

Problem:

The site defaults to English on the homepage, but the content page is in Klingon and has no english version.

- site/content/guide/index.md \<— engligh
- site/content/guide/index.tlh.md \<— klingon

The site:[https://agreeable-island-0c966e810-preview.centralus.6.azurestaticapps.net/](https://agreeable-island-0c966e810-preview.centralus.6.azurestaticapps.net/)  
Github: [GitHub - ScrumGuides/ScrumGuide-ExpansionPack: The Scrum Guide Expansion Pack clarifies Scrum’s core principles, helping teams navigate rapid change, AI integration, and product-focused outcomes.](https://github.com/ScrumGuides/ScrumGuide-ExpansionPack)

**Why would this be?**

If I remove Klingon, it all goes to English.  
I’ve tried weight being with high and low for each language

* * *

hugo.yaml

```auto
defaultContentLanguage: en
languageCode: en
defaultContentLanguageInSubdir: false

languages:
  en:
    languageName: English
    weight: 1
    title: Scrum Guide Expansion Pack
    params:
      description: "ScrumExpansion.org hosts the Scrum Guide Expansion Pack—modern guidance for applying Scrum to complex work, AI, and adaptive strategy."
      keywords: "Scrum, ScrumExpansion.org, Scrum Guide Expansion Pack, Scrum guidance, advanced Scrum practices, Scrum for modern work, adaptive enterprise, agile product delivery, empirical Scrum, product thinking, complexity theory in Scrum, Scrum leadership, professional Scrum, Scrum and AI, Scrum resources, Scrum learning hub, Scrum community site"

```

hugo.local.yaml

```auto
languages:
  tlh:
    languageName: Klingon
    weight: 2
    languageCode: "tlh"
    languageDirection: "ltr"
    title: pOlonyuS puqloD
    params:
      description: pOlonyuS puqloD
      keywords: Yach

```

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [June 13, 2025, 12:11pm UTC](https://discourse.gohugo.io/t/default-language-not-sticking/55049/2 "2025-06-13T12:11:40Z")

</div>

mmh, maybe I did not get the problem as described

building your site locally using `hugo server --config ".\hugo.yaml,.\hugo.local.yaml"`  
opens the guide in the language selected on the homepage

switching on the klingon version to english does not work. your language switcher generates wrong urls

Klingon page: English → `http://localhost:1313/en/tlh/scrum-guide-expansion-pack/`

p.s. in my clone there’s no global setting `languageCode=en` as shown here.  
maybe better to have that english language section anyhow.

---

<div class="post-metadata">

**Author:** ![MrHinsh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mrhinsh/32/23018_2.png) [@MrHinsh](https://discourse.gohugo.io/u/MrHinsh)\
**Post date:** [June 19, 2025, 8:34am UTC](https://discourse.gohugo.io/t/default-language-not-sticking/55049/3 "2025-06-19T08:34:39Z")

</div>

I had a `url` instead of `slug` in the content pages and the Klingon was overwriting the english.

Thnaks [irkode](https://discourse.gohugo.io/u/irkode)

---

<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:** [June 21, 2025, 8:35am UTC](https://discourse.gohugo.io/t/default-language-not-sticking/55049/4 "2025-06-21T08:35:33Z")

</div>

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