mattermost/mattermost

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

Open

#26672 opened on Apr 5, 2024

View on GitHub
 (26 comments) (2 reactions) (1 assignee)TypeScript (32,880 stars) (7,823 forks)batch import
Difficulty/1:EasyHelp WantedTech/ReactJS

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.

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

Contributor guide