Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.112.4 - site.LanguageCode and site.Language.LanguageCode incorrect for monolingual site #11037

Closed
jmooring opened this issue May 28, 2023 · 3 comments

Comments

@jmooring
Copy link
Member

hugo v0.112.4-e285153d

Site configuration (monolingual site)

baseURL = 'https://example.org/'
languageCode = 'en-US'
title = 'foo'
Code v0.112.3 v0.112.4 actual v0.112.4 expected Status
{{ site.LanguageCode }} en-US en en-US
{{ site.Language.Language Code }} NA en en-US

Site configuration (multilingual site)

baseURL = 'https://example.org/'
title = 'foo'

defaultContentLanguage = 'en'
defaultContentLanguageInSubdir = true

[languages.en]
languageCode = 'en-US'
weight = 1

[languages.de]
languageCode = 'de-DE'
weight = 2
Code v0.112.3 v0.112.4 actual v0.112.4 expected Status
{{ site.LanguageCode }} en-US en-US en-US ✔️
{{ site.Language.Language Code }} NA en-US en-US ✔️
@bep
Copy link
Member

bep commented May 28, 2023

Incredible. It's a stupid bug, but I can just add that you can add a language configuration even if you have only 1 language.

@bep bep removed the NeedsTriage label May 28, 2023
@bep bep added this to the v0.112.5 milestone May 28, 2023
@jmooring
Copy link
Member Author

If you apologize, I may get on an airplane, track you down, and make you go fishing.

@bep bep closed this as completed in e3dfc76 May 28, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants