Skip to content
Yameen Yasar Studio

Localization guide

How to add a real Arabic version to your English website

You have an English website that works, and you want to reach Arabic-speaking customers. The quick route is a plugin that translates pages automatically; the right route is an Arabic version built properly. This guide walks through what a real Arabic version takes, step by step, and what to ask before you hire anyone to do it.

5 min read

Start with direction: dir="rtl" and logical CSS

The first thing an Arabic version needs is to declare its direction. Putting lang="ar" and dir="rtl" on the page's root element tells the browser the text reads from the right, and it lays out sentences, punctuation and tables accordingly. This should be set in the page itself from the server, not switched with JavaScript after the page loads.

The harder step is layout. If the site is written with physical properties such as left, right and margin-left, elements will stay where they are even after the direction changes. The fix is to move to logical properties: margin-inline-start, padding-inline-end, inset-inline-start and text-align: start. The same design then works in both directions, with no second stylesheet for Arabic.

  • Review arrows and directional icons, and flip them for Arabic.
  • Leave the logo, numbers, URLs and media controls unflipped.
  • Give email and phone fields, and any URL inside Arabic text, dir="ltr".

Fonts: Arabic is not an afterthought

Most Latin fonts contain no Arabic letters, so the browser falls back to a default font that looks nothing like your brand. Choose an Arabic font designed for screens that matches your Latin font, and load it only on Arabic pages so it does not slow the site down.

Then tune the typography for Arabic specifically: the same size or slightly larger, more line-height than English, no letter-spacing and no uppercase. These details alone move a page from "translated" to "written in Arabic".

Copy: written in Arabic, not translated into it

This is where it is won or lost. If the Arabic is a machine or literal translation, no design will save it. Arabic readers want to feel the site is speaking to them, in natural Arabic sentences and the terms they actually use in their market.

The best Arabic copy starts from meaning, not words: what is this page saying, and to whom? Then it is written again in Arabic. Do not forget the small text either: menu and button labels, form messages, image alt text, and each page's title and description in search results.

URLs and search engines

For your site to show up for people searching in Arabic, every Arabic page needs its own URL, such as /ar/ and /en/, or a subdomain per language. A button that swaps the text on the same page without changing the URL is not enough, because search engines only see one version.

Then link the two versions with hreflang tags in each page's head, set a canonical URL per language, and add the Arabic pages to your sitemap. Finally, write Arabic page titles and descriptions using the phrases people actually type into search, not translations of the English titles.

Test on real phones

Many Arabic problems never show on a desktop screen: a line breaking in an odd place, a menu running off the screen, a phone number flipping, an email field typing in the wrong direction. So test the Arabic version on real phones, iPhone and Android, before launch.

  • Browse every Arabic page on a small screen and check there is no horizontal scroll.
  • Fill in every form and trigger its error and success messages.
  • Switch between languages and check you stay on the same page.
  • Ask an Arabic reader who has never seen the site to read it and tell you what felt off.

What to ask before you hire anyone

Before you hand anyone the job of adding Arabic to your site, ask these questions. The answers show whether they will build a real Arabic version or just add a translation:

  • Who writes the Arabic copy, and is it written in Arabic or translated?
  • Will each language have its own URLs and hreflang tags?
  • How will you handle arrows, icons and numbers in Arabic?
  • Will you test the Arabic version on real phones before handover?
  • Can I see an Arabic website you have built before?

Want an Arabic version of your site?

We add real Arabic versions to existing English websites, quoted per project once we have seen your site. Send us the link and we will tell you what it needs.

Message on WhatsApp

Solutions for your industry