DevPrep

All topics › Accessibility and localization

RTL: layout for Arabic and Hebrew

Middle PRO

Essence

In right-to-left languages (Arabic, Hebrew, Persian, Urdu) the whole interface is mirrored: the back button is on the right, a cell's icon is on the right, text is right-aligned, progress grows from right to left. If the layout is written in terms of "leading and trailing" rather than "left and right", the system does almost everything for you.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store