mattermost/mattermost

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

Open

#26,672 创建于 2024年4月5日

在 GitHub 查看
 (26 评论) (2 反应) (1 负责人)TypeScript (32,880 star) (7,823 fork)batch import
Difficulty/1:EasyHelp WantedTech/ReactJS

描述

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

贡献者指南