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
- Set locale to French
- 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
Bug Report (Automated QA)
Severity: LOW
Scope: i18n / accessibility
Commit: 2ea77e0
Description
When the app locale is French (
i18nextLng=fr), the<html>element'slangattribute remains"en". Screen readers and browser features that rely on thelangattribute will use English pronunciation and rules for French content.Steps to Reproduce
document.documentElement.lang— returns"en"Fix
In
src/i18n/i18n.ts, add a listener for language changes that updatesdocument.documentElement.lang:Environment