Skip to content

fix(layouts): update deprecated language properties for compatibility#1857

Closed
adityatelange wants to merge 0 commit into
masterfrom
fix/hugo-v0.158.0-deprecations
Closed

fix(layouts): update deprecated language properties for compatibility#1857
adityatelange wants to merge 0 commit into
masterfrom
fix/hugo-v0.158.0-deprecations

Conversation

@adityatelange
Copy link
Copy Markdown
Owner

This pull request updates how language metadata is accessed and displayed throughout the site templates. The changes standardize the use of .Language.Label and .Language.Direction instead of the previously used .Language.LanguageName and .Language.LanguageDirection, and ensure correct locale handling for OpenGraph metadata.

Theme: Language Metadata Standardization

  • Updated all templates to use .Language.Label for displaying language names and .Language.Direction for language direction, replacing .Language.LanguageName and .Language.LanguageDirection. This affects language switchers and translation lists for consistency and improved maintainability. [1] [2] [3]

Theme: Metadata and SEO Improvements

  • Changed the OpenGraph locale meta tag to use .Language.Locale instead of .Language.LanguageCode for more accurate locale representation.

@adityatelange adityatelange linked an issue May 2, 2026 that may be closed by this pull request
1 task
@adityatelange adityatelange force-pushed the fix/hugo-v0.158.0-deprecations branch from 3147e04 to 87de3fb Compare May 3, 2026 14:55
@adityatelange adityatelange deleted the fix/hugo-v0.158.0-deprecations branch May 10, 2026 05:10
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.

[Bug]: .Language variable name deprecations

1 participant