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:
Joe Mooring
2026-02-28 01:36:28 -08:00
committed by Bjørn Erik Pedersen
parent 991d2f9aba
commit d4f2122dea
19 changed files with 662 additions and 70 deletions
+4 -4
View File
@@ -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: