config/allconfig: Fix slice of language configs

Fixes #13201
This commit is contained in:
Joe Mooring
2024-12-29 16:44:13 -05:00
committed by Bjørn Erik Pedersen
parent eb1dbe0709
commit 7888ac585c
2 changed files with 22 additions and 1 deletions

View File

@@ -751,7 +751,6 @@ func (c *Configs) Init() error {
var languages langs.Languages
defaultContentLanguage := c.Base.DefaultContentLanguage
for k, v := range c.LanguageConfigMap {
c.LanguageConfigSlice = append(c.LanguageConfigSlice, v)
languageConf := v.Languages[k]
language, err := langs.NewLanguage(k, defaultContentLanguage, v.TimeZone, languageConf)
if err != nil {