mattermost/mattermost

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

开放

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

 (26 条评论) (2 个反应) (1 位负责人)TypeScript (7,823 个派生)batch import
Difficulty/1:EasyHelp WantedTech/ReactJS

仓库指标

星标
 (32,880 个星标)
PR 合并指标
 (平均合并 6天 5小时) (30 天内合并 318 个 PR)

描述

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

贡献者指南