Skip to main content

Right-to-left support

Direction comes only from the direction field of the locale registry, never from the language tag.

PieceWhereBehaviour
<html dir> and langshared/i18nSet from the active locale and updated on a language change, with no reload.
MUI themeuseCobrandThemedirection: 'rtl' when the locale is right-to-left.
Style cachefeatures/rtl-support DirectionCacheProviderEmotion cache with stylis-plugin-rtl for right-to-left.
IconsDirectionalIcon, mirroredIconNamesThe 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 textIsolated, 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.