Skip to content

Fix deprecation warnings emitted from hugo 0.158.0#430

Merged
chalin merged 2 commits into
google:mainfrom
deining:fix-deprecation
Jun 11, 2026
Merged

Fix deprecation warnings emitted from hugo 0.158.0#430
chalin merged 2 commits into
google:mainfrom
deining:fix-deprecation

Conversation

@deining

@deining deining commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

When running the site with latest released hugo version 0.158.0, deprecation warnings are printed out:

INFO  deprecated: project config key languages.en.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.en.label instead.
INFO  deprecated: project config key languages.no.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.no.label instead.
INFO  deprecated: project config key languages.fa.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.fa.label instead.
INFO  deprecated: project config key languages.fa.languageDirection was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.fa.direction instead.
INFO  deprecated: project config key languages.no.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.no.label instead.
INFO  deprecated: project config key languages.fa.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.fa.label instead.
INFO  deprecated: project config key languages.fa.languageDirection was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.fa.direction instead.
INFO  deprecated: project config key languages.en.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.en.label instead.

See: https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869

This PR fixes these warnings.

@deining deining force-pushed the fix-deprecation branch from 516f509 to 6561a26 Compare May 15, 2026 08:04
@deining

deining commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

I just rebased this PR and resolved a merge conflict.
I would like to see this PR reviewed and merged soon otherwise this issue might by escalated to an error in a future hugo version.

@chalin chalin force-pushed the fix-deprecation branch from 6561a26 to f2c875c Compare June 11, 2026 22:17

@chalin chalin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM with Hugo version set to 0.158.0 (I'll make the edit).

Comment thread package.json Outdated
@chalin chalin merged commit f9940fb into google:main Jun 11, 2026
10 checks passed
@deining deining deleted the fix-deprecation branch June 14, 2026 15:54
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

Successfully merging this pull request may close these issues.

2 participants