Arabic-first software: what actually changes when Arabic is not the last layer
Flipping the page to right-to-left is the easy part. The hard parts are mixed-direction text, numbers, typefaces whose diacritics collide, and printed reports. Practical lessons from building this site and our systems.
Many systems “support Arabic” in the sense that their strings are translated. Arabic users notice at once when Arabic is a guest: an arrow pointing the wrong way, a reversed phone number, an invoice that breaks when printed. When Arabic is the first language, design and code decisions change from day one.
Direction is logical, not left or right
The classic mistake is hard-coding “left margin” and “right align”. The right model is the start and end of the line, which flip automatically between Arabic and English. Directional icons follow the same logic: a “next” arrow points left in Arabic and right in English.
Mixed-direction text is the real challenge
An Arabic sentence containing an English product name, a number or an email address can render in a broken order, because the bidirectional algorithm guesses where each piece belongs. The fix is to isolate the Latin pieces and set their direction explicitly, and to mark brand names so the browser’s machine translation leaves them alone.
Typefaces and line height
Arabic needs more space between lines than Latin, because of the dots and diacritics above and below letters. On this site we found that large headings at the default line height let the diacritics of a second line touch the first, so every Arabic heading now carries a wider line height as a fixed rule. Likewise, the tight letter-spacing that helps English display type can crowd Arabic glyphs.
Numbers, dates and currency
- Decide early: Eastern Arabic numerals (١٢٣) or Western (123)? Then apply it everywhere, invoices and reports included.
- Phone numbers and amounts stay left-to-right even inside Arabic text, so isolate them.
- Dates need a clear local format, and currency needs an unambiguous symbol (Yemeni or Saudi riyal?).
Accessibility does not translate itself
A screen reader needs to know the language of each piece to pronounce it correctly. A “التحويل للعربية” button on an English page must carry the language of its Arabic words, or the reader pronounces them as English. Colour contrast is measured on the real text: a grey that looks fine can fall below the reading threshold, which happened here and was fixed by measuring ratios rather than eyeballing them.
Search engines need both versions spelled out
Every page has its own Arabic and English title, plus an explicit link telling search engines the two are the same page in two languages, and URLs with an invalid language are refused rather than quietly served in Arabic. That prevents duplicate pages and makes sure an Arabic searcher lands on the Arabic version.
In short
Arabic-first is not a feature added in the last week; it is small decisions in every component. They cost little at the start and a lot to retrofit.