Menu

Building Bilingual (Arabic + English) Shopify Themes: Practical RTL Lessons
📰

Building Bilingual (Arabic + English) Shopify Themes: Practical RTL Lessons

DEV Community: css·Digital Graphiks·12 days ago
#wG0UBPNY
#devtocss#devto#dev#arabic#direction
Long article (829 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.