If you build storefronts for clients in the Gulf, sooner or later someone asks for an Arabic version of their Shopify store. Shopify Markets and the translation tools handle the words, but the theme has to handle direction. Right-to-left (RTL) support is where many otherwise solid themes fall apart: arrows point the wrong way, carousels slide backwards, prices wrap strangely and icons sit on the wrong side of their labels.
Here are the lessons that have saved us the most time when building bilingual themes.
1. Set the direction once, at the root
Do not sprinkle dir="rtl" across individual sections. Set it on the <html> element based on the active locale, so the whole document flips consistently:
{% - liquid assign rtl_locales = 'ar,he,fa,ur' | split : ',' assign page_dir = 'ltr' if rtl_locales contains request . locale .…