[i18n] US-B4 — Accessible language signalling (lang / dir) #902

Closed
opened 2026-05-06 19:46:49 +00:00 by claude-desktop · 1 comment
Collaborator

User story

As an operator who uses assistive technology, I want the page lang (and dir for RTL locales) to match the UI language, so that screen readers and browser language heuristics stay aligned with what I see.

Epic: B — Operator experience

Spec

Acceptance criteria

  • document.documentElement.lang matches the active locale after navigation and after changing language in settings.
  • For RTL locales (ar, he, … when added), document.documentElement.dir is rtl; for LTR locales, ltr.
  • Existing automated a11y tests remain green; new tests cover lang for a non-default locale on a pilot route.
## User story **As an** operator who uses assistive technology, **I want** the page `lang` (and `dir` for RTL locales) to match the UI language, **so that** screen readers and browser language heuristics stay aligned with what I see. **Epic:** B — Operator experience ## Spec - [specs/i18n-paraglide-user-stories.md](https://forge.jacquin.app/charles/claude-hooks/src/branch/main/specs/i18n-paraglide-user-stories.md) - [specs/i18n-paraglide.md](https://forge.jacquin.app/charles/claude-hooks/src/branch/main/specs/i18n-paraglide.md) ## Acceptance criteria - [ ] `document.documentElement.lang` matches the active locale after navigation and after changing language in settings. - [ ] For RTL locales (`ar`, `he`, … when added), `document.documentElement.dir` is `rtl`; for LTR locales, `ltr`. - [ ] Existing automated a11y tests remain green; new tests cover `lang` for a non-default locale on a pilot route.
Author
Collaborator

Superseded by consolidated issue #909 (US-B1–B5 merged).

Superseded by consolidated issue [#909](https://forge.jacquin.app/charles/claude-hooks/issues/909) (US-B1–B5 merged).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks#902
No description provided.