-
Notifications
You must be signed in to change notification settings - Fork 194
Labels
Description
Describe the bug
When a user’s browser is set to a language that is not supported by our web application, the application correctly falls back to English for displayed content. However, the <html lang=""> attribute remains set to the unsupported browser language instead of updating to reflect the fallback language (English).
Rationale:
The lang attribute is critical for accessibility, as it informs assistive technologies (e.g., screen readers) about the language of the content. When the lang attribute is incorrect:
- Screen readers may mispronounce text, leading to a poor experience for visually impaired users.
- Language-specific features like spell-checking or font rendering may behave incorrectly.
To ensure accessibility and proper functionality, the lang attribute should always reflect the actual language of the content displayed to the user.
Steps to reproduce
- Set your browser’s preferred language to a language not supported by the application (e.g., Luxembourgish
lb). - Navigate to the web application.
- Observe that the UI is displayed in English.
- Inspect the
<html>tag and note that thelangattribute is still set to the unsupported language (e.g.,lang="lb").
Expected behavior
lang attribute is set to English/en
Actual behavior
lang attribute stays Luxembourgish/'lb'
Setup
- Web version:
- oCIS version:
- browser:
OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalueAdditional context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done