> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/concepts/multilingual.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Arabic and English

Arabic and English on every site, and how each piece of text gets its translation.

Every Mutamad site has **both** languages, each behind its own address prefix:

|         | Address                       | Direction     |
| ------- | ----------------------------- | ------------- |
| Arabic  | `https://example.gov.sa/ar/…` | Right to left |
| English | `https://example.gov.sa/en/…` | Left to right |

The site is **installed** in one of them, which becomes the default language; `mutamad_multilingual` adds the other.

{% hint style="warning" %}
**The default language is chosen once, at installation.** Drupal fixes a field's language when the field is created; changing the default later leaves earlier fields with the old one.
{% endhint %}

## Where each kind of text comes from

| Text                                                | Translated by                         | How                                                                                                                                                                               |
| --------------------------------------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Content** — pages, services, news…                | Editors                               | The **Translate** tab of each item. A translation goes through the workflow like the original.                                                                                    |
| **Canvas pages**                                    | Editors                               | Canvas Translate: every page by language, the source beside the translation, a draft per translation.                                                                             |
| **Menus, taxonomy terms**                           | Reviewers, App Admin                  | Their Translate tabs.                                                                                                                                                             |
| **Drupal and its modules' interface**               | localize.drupal.org                   | Downloaded automatically at installation and by cron.                                                                                                                             |
| **Mutamad's own labels** — role names, field labels | localize.drupal.org, or the App Admin | Until they are translated upstream, an Arabic site shows them in English. The App Admin translates them at **Configuration → Regional and language → Configuration translation**. |
| **System emails**                                   | Shipped                               | Sent in the recipient's preferred language, whatever page triggered them.                                                                                                         |

## How a new page gets its language

A new page is written in the language of the address you are on: `/ar/node/add/page` writes an Arabic page, `/en/node/add/page` an English one. The language field is first on the form and can be changed.

## When a page has no translation

An anonymous visitor who opens `/en/…` of a page that exists only in Arabic is sent to `/ar/…` (a temporary redirect) and sees DGA's information notice, **in English**, explaining why. The whole page is then in one language, with the right direction and `lang` attribute, which screen readers need (WCAG 2.1 3.1.2).

Logged-in staff are not redirected: an editor at `/en/…` of an Arabic-only page has probably come to add the English.

## Configuration is stored in one language

All configuration is stored in the site's default language (Config Language Lock), and translated through configuration translation. This keeps an Arabic site's configuration from mixing languages.

## Right to left

The theme is written with CSS logical properties (`margin-inline-start`, not `margin-left`), so one stylesheet serves both directions; RTLCSS handles what logical properties cannot (floats, background positions). The rich-text editor has right-to-left and left-to-right buttons, so Arabic and English can share a paragraph.

## Arabic search

Site search writes Arabic one way in what is indexed and in what is searched: alef forms, alef maqsura, taa marbuta, hamza seats, diacritics, tatweel and Arabic-Indic digits. A visitor finds a word however either side spelled it, and sees it highlighted. See [Search and SEO](https://ispectra.gitbook.io/mutamad/site-building/search-and-seo.md).

## Dates

The administration dashboard shows today's date in the Hijri (Umm al-Qura) and Gregorian calendars.
