Operate · 11
Languages and RTL
Language is a first-class part of the interface. Server templates, JavaScript, admin labels and dynamic patterns share generated catalogs, with Arabic triggering a full RTL layout.

Languages
| Code | Language | Direction | Notes |
|---|---|---|---|
| en | English | LTR | Default. |
| fr | Français | LTR | Storefront, account, dashboard, admin and JS. |
| es | Español | LTR | Storefront, account, dashboard, admin and JS. |
| pt | Português | LTR | Storefront, account, dashboard, admin and JS. |
| ar | العربية | RTL | Mirrored layouts, popovers and Studio panels. |
The selector sets site_language and redirects back to the current page. The language cookie is secure and HTTP-only in production.
Translation pipeline
The UI translation layer combines server strings, dynamic patterns and browser/JavaScript literals. Catalogs live in apps/core/ui_translations/. After adding interface copy, rebuild the catalogs and run the residual-English audit before release.
.venv/bin/python scripts/build_ui_translations.py
.venv/bin/python scripts/audit_ui_translations.pyThe build script extracts template, Python, JavaScript, admin/model and dynamic pattern strings. The audit reports zero residual English UI chunks and zero untranslated JS literals for each non-English locale.
Admin, Studio and email coverage
Django admin changelists, add/change forms, model labels, Studio section schema, Email Studio labels and account surfaces are translated. The Studio schema is localized server-side so the section library and inspector labels match the active language.
When adding a new section or dashboard module, add its labels to the extraction sources and rebuild the catalogs. Do not hand-edit generated JSON unless you are debugging a single string.
Right-to-left behaviour
Arabic sets dir="rtl" on the document. Navigation order, icons, table alignment, form controls, popovers and Studio panels mirror correctly. The responsive audit covers 390, 768 and 1024 px in English and Arabic with zero document overflow.
- Use logical CSS properties where possible.
- Test the notification, account, search and Studio pickers at phone width.
- Check long Arabic labels in the dashboard sidebar and table headers.
- Re-run the i18n regression test after template changes.
Content and email
Storefront content, CMS sections, product copy, email sections and legal pages can be translated. The generated catalogs cover interface strings; editorial content should be reviewed by a fluent speaker. The Email Studio schema and section labels are localized, while the message body you write remains your responsibility.
# Focused regression checks
python manage.py test apps.core.tests.I18nTests
.venv/bin/python scripts/audit_ui_translations.py