Skip to main content
Version: 1.0.0-beta

RTL Support

AIIA provides full right-to-left (RTL) layout support for Arabic. The entire interface mirrors when Arabic is selected, ensuring a native reading experience.

How RTL Works

When Arabic is selected, the platform applies:

  • dir="rtl" to the HTML document
  • lang="ar-SA" for Arabic locale
  • CSS logical properties for layout mirroring
  • Right-aligned text for all UI elements

What Mirrors

ElementLTR (English)RTL (Arabic)
SidebarLeft sideRight side
Text alignmentLeft-alignedRight-aligned
Navigation flowLeft → RightRight → Left
Icons with direction→ arrows← arrows
Table layoutLeft-to-right columnsRight-to-left columns
Form labelsLeft of inputsRight of inputs
BreadcrumbsHome → Module → Pageالرئيسية ← الوحدة ← الصفحة

Charts and Diagrams

  • Mermaid diagrams are direction-aware and render RTL for Arabic
  • Bar charts maintain standard orientation (left-to-right axis)
  • Tables mirror column order

Mixed Content

When Arabic content includes English text (e.g., technical terms):

  • The browser's Unicode Bidirectional Algorithm handles the direction automatically
  • English words within Arabic text display left-to-right
  • No manual intervention is needed

RTL Testing

All RTL layouts are tested against:

  • Navigation and sidebar positioning
  • Form input and label alignment
  • Table rendering
  • Modal and dialog positioning
  • Date picker direction
  • Chart rendering