Right-to-left support
Direction comes only from the direction field of the locale registry, never from the language tag.
| Piece | Where | Behaviour |
|---|---|---|
<html dir> and lang | shared/i18n | Set from the active locale and updated on a language change, with no reload. |
| MUI theme | useCobrandTheme | direction: 'rtl' when the locale is right-to-left. |
| Style cache | features/rtl-support DirectionCacheProvider | Emotion cache with stylis-plugin-rtl for right-to-left. |
| Icons | DirectionalIcon, mirroredIconNames | The one mirror list. Only direction and sequence icons mirror; media controls never do. A new directional icon must be added to the list. |
| Mixed-direction text | Isolated, isolate() | Names, emails, URLs and numbers keep their reading order. English fallback strings are isolated automatically. |
ar is the right-to-left test language: an ordinary registry entry, enabled in every environment, with machine-translated strings.
Report charts and the player top bar are not built yet, so they are not mirrored; content inside the player iframe never is.