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

Remove examples of LanguageCode fallback #2565

Closed
jmooring opened this issue May 10, 2024 · 1 comment
Closed

Remove examples of LanguageCode fallback #2565

jmooring opened this issue May 10, 2024 · 1 comment

Comments

@jmooring
Copy link
Member

We have examples like this:

or .Site.Language.LanguageCode .Site.Language.Lang

With v0.112.0 and later the fallback is superfluous.

https://github.com/gohugoio/hugo/blob/b1bf0bff2c8ce1e2cace5010a81911a3dbf8e674/langs/language.go#L108-L112

@jmooring
Copy link
Member Author

Fixed by #2567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant