element-hq / element-hq/element-web

Incorrect lang attribute in root <html> element

Open
#32,603 1 comment 1 reaction 0 assignees View on GitHub
I18n O-Occasional S-Major T-Defect
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.