mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Update server/channels/web/static.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
49518fa8f6
commit
ba98af7e52
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue