Skip to content

Studio notes

A website in English, Arabic and French: what it takes

A multilingual website in English, Arabic and French needs its own address per language, a real right-to-left Arabic layout and clear labels for Google.

6 min read

A multilingual website in English, Arabic and French needs five things done properly: its own address for each language, a real right-to-left layout for Arabic, each language written into the pages rather than added by a translate button, a language switcher that keeps the visitor on the same page, and labels that tell Google which pages are versions of each other. With those in place, a visitor can read the whole site in any of the three languages, and Google is helped to point each searcher to the right version.

What a multilingual website is, in Google’s words.

Google’s own definition is short: "A multilingual website is any website that offers content in more than one language." So a bilingual website counts too. Google Search tries to find pages that match the language of the searcher, so the question is how easy you make that for it.

One address per language.

Google recommends using different URLs for each language version of a page, rather than cookies or browser settings that change the language on the same page. Its reason is practical: if the content changes depending on language settings, Google might not find and crawl all your variations. Its crawler usually comes from the USA and does not send a language preference with its requests.

Google’s page compares address shapes for targeting countries, and the same shapes can carry a language:

  • Subdirectories, such as example.com/ar/: easy to set up, low maintenance, one host.
  • Subdomains, such as ar.example.com: easy to set up, easy to separate.
  • URL parameters, such as ?lang=ar: Google lists them as not recommended.

A country domain, such as example.de, is for a country, not a language: Google notes it can only target a single country.

Arabic needs a right-to-left layout, not just Arabic words.

An Arabic website is not an English page with Arabic text poured in. The W3C (the World Wide Web Consortium) puts it plainly in its Arabic layout requirements: "When the main script is Arabic, the layout and structure of pages and documents are also set from right to left."

Its advice for an RTL website starts with one setting in the page’s code: dir="rtl" on the page’s top tag. That single change right-aligns paragraphs, makes table columns run from right to left and starts form fields at the right. "If you write the style sheet correctly, CSS will automatically mirror the layout," using start and end rather than left and right. The same page is firm on one point: do not use CSS to set the base direction; it belongs in the markup. For forms and text that visitors type, it advises dir="auto", so the browser follows what was actually typed.

Good Arabic website design also takes care with three details:

  • Fonts. Arabic letters change shape with their place in the word, so Arabic fonts typically contain hundreds of glyphs. The Arabic typeface is a choice of its own.
  • Line height. Arabic ascenders and descenders reach much further than Latin ones, so lines that mix the two need care to sit well together.
  • Numbers. Inside right-to-left text, numbers are still written from left to right. There are also three families of digits: European digits (0 to 9), used for example in Algeria and Morocco; Arabic-Indic digits, used for example in Egypt, Saudi Arabia and Iraq; and a third family used in Iran and Afghanistan. Pick one for the site and keep it.

Translate the website into Arabic page by page, not with a widget.

When you translate a website to Arabic or French, a button that swaps the words on the same address runs into the advice above: one address, several languages behind it.

Google also advises making each page’s language obvious. It uses the visible content of the page to determine its language, and suggests a single language for both content and navigation on each page, with no side-by-side translations. Translating only the menus and footer while the main text stays in one language can create a bad experience if the same content shows up several times in search results. Google treats localized versions as duplicates only if the main content remains untranslated. A written page per language, with its own menus, avoids both.

A language switcher that keeps your place.

Someone reading your Services page in English who switches to Arabic should land on the Arabic Services page, not the Arabic home page. Google’s advice points the same way: add links to the other language versions of a page, so people can click to choose.

What it advises against is guessing. Avoid redirecting visitors automatically to the version you think matches their language: those redirects could stop people and search engines from seeing all the versions of your site. For visitors whose language you don’t offer, Google suggests an x-default fallback page.

What Google is told about each language.

Google reads the page itself to know its language: it does not use hreflang or the HTML lang attribute for that. What hreflang does is tell Google that pages are versions of the same content, which helps it point each searcher to the right one. The rules from Google’s page:

  • Use one of three methods: a few lines in the page’s code, the headers the server sends, or the sitemap. Google calls them equivalent.
  • Each language version lists itself and all the others.
  • Each address is written in full, with https://.
  • Both pages must point to each other: if they don’t, the tags are ignored.

The lang attribute still matters, just not for Google’s language detection. The W3C says to always declare the language on the html tag, and explains why: browsers use it to pick fonts and apply hyphenation, and it helps speech synthesizers produce usable results.

Questions

Is a translate button enough for a multilingual website?

Not if it swaps the words on the same address. Google recommends a separate URL for each language version, and warns that content which changes with language settings might not all be found and crawled.

Does Google see an Arabic page as a copy of the English one?

No, as long as the main text is translated. Google considers localized versions duplicates only when the main content remains untranslated.

Should the site send Arabic speakers straight to the Arabic pages?

Google advises against redirecting visitors automatically by guessing their language. Links to the other language versions of each page let people choose.

Is hreflang enough on its own?

It tells Google which pages belong together, but Google still reads the visible content to know each page’s language. Each page needs to be plainly written in one language.

What we do here.

Every website we build comes in English, Arabic and French. If you want to see what that looks like for your business, our websites page explains what a site includes, and the first step is a free preview of your new website.

References

  1. Google Search Central, Managing multi-regional and multilingual sites
  2. Google Search Central, Tell Google about localized versions of your page
  3. W3C Internationalization, Structural markup and right-to-left text in HTML
  4. W3C, Arabic & Persian Layout Requirements

More articles