The HTML tag always has lang="en" even if the language in settings is set to a different language
#26672 opened on Apr 5, 2024
Description
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.