Right-to-left languages
Some languages are written from right to left. ResilientLang knows which ones. It stores the direction for each language in your published files, as ltr or rtl.
What happens automatically#
- When a visitor switches to a right-to-left language, the loader updates the
langanddirsettings of the page. - The language switcher follows the direction of the current language.
- The translation editor shows each translation with the right language and direction, so you can read it as your visitors will.
- On WordPress and in the framework kits, translated pages are written with the right
langanddirfrom the start.
What you may need to check#
The direction setting changes how the browser lays out text. It does not rewrite your theme. After you add a right-to-left language, open your key pages and look for:
- Menus, buttons and icons that are placed on the wrong side.
- Text that is cut off or overlaps, because padding was set for the left.
- Arrows and "next" or "back" icons that now point the wrong way.
- Numbers, brand names and English words inside Arabic or Hebrew text. The browser handles most mixing, but check your headlines.
Themes written with logical CSS (start and end instead of left and right) usually work with little change. Older themes may need a right-to-left stylesheet.
Which languages#
In the dashboard's language list, Arabic, Persian, Hebrew and Urdu are marked right to left.