Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#26672·mattermost

The HTML tag always has lang="en" even if the language in settings is set to a different language

Author: mattermodCreated Apr 5, 2024Updated Sep 17, 2026
LabelsDifficulty/1:EasyTech/ReactJSHelp Wanted

Original ticket: https://github.com/mattermost/mattermost-server/issues/21552

Summary

The html tag always defines the language of the page to <html lang="en">. We want this to be set to the “DefaultClientLocale”, that can be found in the config. If there is no value in the config, we can set it to unknown.

The objective of this is so browsers translate the content of the site (the messages in the posts) from the language the server is in theory using.


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-48048

Source: mattermost/mattermost

View original on GitHubView discussion on GitHub