element-hq / element-hq/element-web
Incorrect lang attribute in root <html> element
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. Change the application language of Element Web in Preferences to another language than English e.g. German.
2. View HTML sourcecode.
3. Observe that `lang="en"`
### Outcome
#### What did you expect?
The root `` element has `lang=de` or any other language than English.
#### What happened instead?
The root `` element always has `lang="en"` despite the user having chosen a different language. This results in spell-checkers thinking everything is in English, and screen-readers trying to use English pronunciation for all languages.
This seems to be hardcoded in /src/vector/index.html
### Operating system
_No response_
### Browser information
_No response_
### URL for webapp
_No response_
### Application version
Element: 1.12.10
### Homeserver
_No response_
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.