Skip to content

[QA] LOW: HTML lang attribute is 'en' despite locale being 'fr' #33

@mpiton

Description

@mpiton

Bug Report (Automated QA)

Severity: LOW
Scope: i18n / accessibility
Commit: 2ea77e0

Description

When the app locale is French (i18nextLng=fr), the <html> element's lang attribute remains "en". Screen readers and browser features that rely on the lang attribute will use English pronunciation and rules for French content.

Steps to Reproduce

  1. Set locale to French
  2. Inspect document.documentElement.lang — returns "en"

Fix

In src/i18n/i18n.ts, add a listener for language changes that updates document.documentElement.lang:

i18n.on('languageChanged', (lng) => {
  document.documentElement.lang = lng;
});

Environment

  • Branch: feat/phase8-polish

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: lowNice to have, not urgentqa-automatedBug found by automated QA testingscope: frontendFrontend / UI changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions