Default language not sticking

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/
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.

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

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

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

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.

1 Like

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

Thnaks irkode

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