Skip to content

RTL Language Support

Avenue Luxe includes comprehensive right-to-left (RTL) language support that automatically detects RTL languages and applies appropriate layout, typography, and component adjustments.

LanguageCodeFont Support
ArabicarTajawal, Dubai, Naskh, Kufi
HebrewheRubik, Alef, Open Sans Hebrew
Persian (Farsi)faVazir, Samim, Tahoma
UrduurNoto Nastaliq Urdu
  • Detects RTL languages based on locale code
  • Sets dir="rtl" attribute on HTML element
  • Applies RTL-specific CSS automatically
  • Text alignment (right-aligned)
  • Flexbox and grid direction reversal
  • Navigation menu reversal
  • Cart drawer slides from left
  • Modal positioning adapted
  • Form element alignment
  • Language-specific font families
  • Increased line-height for readability
  • Letter spacing adjustments
  • Product cards (mirrored layout)
  • Breadcrumbs (reversed separators)
  • Sliders and carousels (RTL navigation)
  • Search inputs (icon on left)
  • Modals (close button on left)
  • Automatic flipping of directional icons (arrows, chevrons)
  • Control with data-flip-rtl (force flip) or data-no-flip (prevent flip) attributes

Navigate to Theme Settings > RTL Language Support:

SettingDescription
Enable RTL SupportMaster toggle
Flip Directional IconsAuto-flip arrows and chevrons
Arabic Font FamilyChoose from Tajawal, Dubai, Naskh, Kufi
RTL Line HeightAdjust spacing (1.4 - 2.0)
Reverse Cart DrawerPosition cart on left side
Reverse Mobile MenuPosition menu on right side
Mirror Product GalleryReverse gallery navigation
[dir="rtl"] .my-custom-component {
flex-direction: row-reverse;
text-align: right;
}

Numbers remain left-to-right automatically:

[dir="rtl"] .price {
direction: ltr;
display: inline-block;
}
  • RTL CSS only loads for RTL locales (~2KB gzipped)
  • RTL detection runs once on page load
  • No measurable impact on First Contentful Paint
  • Zero Cumulative Layout Shift

Icons not flipping: Add data-flip-rtl attribute to the SVG element.

Custom component not mirroring: Add [dir="rtl"] CSS rule with flex-direction: row-reverse.

Font not loading: Check font family setting in Theme Settings > RTL.

Numbers display incorrectly: Numbers should remain LTR (this is handled automatically).

  • Automatic hreflang tags for language alternates
  • Proper lang attribute on HTML element
  • Correct dir attribute for text direction
  • Language-aware structured data