Add language.LanguageCode

But keep an alias at Site

Closes #11027
This commit is contained in:
Bjørn Erik Pedersen
2023-05-27 15:44:41 +02:00
parent 8f293a1855
commit 6c2db0dfb0
5 changed files with 17 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ type Site interface {
Title() string
// Returns the configured language code for this Site.
// Deprecated: Use .Language.LanguageCode instead.
LanguageCode() string
// Returns the configured copyright information for this Site.