Update server/channels/web/static.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Ben Schumacher 2026-03-18 11:04:13 +01:00 committed by GitHub
parent 49518fa8f6
commit ba98af7e52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,7 @@ func root(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
defaultLocale := *c.App.Srv().Config().LocalizationSettings.DefaultServerLocale
defaultLocale := *c.App.Srv().Config().LocalizationSettings.DefaultClientLocale
htmlTagWithLangTemplate := `<html lang="%s">`
localizedHtmlTag := fmt.Sprintf(htmlTagWithLangTemplate, html.EscapeString(defaultLocale))
defaultEnglishHtmlTag := fmt.Sprintf(htmlTagWithLangTemplate, "en")