mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
refactor: Deprecate language configuration and template methods
Configuration: - languageCode -> locale (either in root or per-language) - languageName -> label - languageDirection -> direction Methods: - .Language.LanguageCode -> .Language.Locale - .Language.LanguageName -> .Language.Label - .Language.LanguageDirection -> .Language.Direction - .Site.LanguageCode -> .Site.Language.Locale Example configuration: [languages.en] direction = 'ltr' label = 'English' locale = 'en-US' weight = 1 Closes #14269 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
991d2f9aba
commit
d4f2122dea
+4
-4
@@ -1262,16 +1262,16 @@ config:
|
||||
hint: photo
|
||||
method: 2
|
||||
useSharpYuv: false
|
||||
languageCode: ''
|
||||
languages:
|
||||
en:
|
||||
direction: ''
|
||||
disabled: false
|
||||
languageCode: ''
|
||||
languageDirection: ''
|
||||
languageName: ''
|
||||
label: ''
|
||||
locale: ''
|
||||
title: ''
|
||||
weight: 0
|
||||
layoutDir: layouts
|
||||
locale: ''
|
||||
mainSections: null
|
||||
markup:
|
||||
asciiDocExt:
|
||||
|
||||
Reference in New Issue
Block a user