Right To Left (RTL) is a locale property indicating that text is written from right to left. Most Western languages, as well as many others around the world, are written left to right however there are a few languages in the world for example Arabic and Hebrew that read their content right to left.
Bi-directional (Bidi) languages refer to the ones that are written and read mainly from right to left. These languages include Arabic, Hebrew, Persian (Farsi), Azerbaijani, Urdu, Punjabi (in Pakistan), Pushto, Dari, Uigur, and Yiddish. While these languages follow the RTL direction, they may include text written in Western languages that follows the LTR direction. Languages that include both RTL and LTR directionality are called Bidi languages.
It is important to implement RTL and Bidi content on a case by case basis, inspect the following:
Public Sans can have problems rendering some content and may display vertical white rectangles if they cannot render a certain RTL language character, as such Arial is the preferred font family to present RTL content.
Check RTL content when using a different typeface as other languages may not bold or italicize text the same way that English does. Additionally abbreviations may have formatting issues.
body: font-family: Arial, sans-serif;
It is possible to automatically align content right to left, without the hassle of writing additional CSS. Applying logical properties by default makes it easier to localise content or include text with a different direction. Using logical properties ’like ‘start’ and ‘end’, rather than ‘left’ or ‘right’, for example margin-block-start and padding-inline-end instead of margin-top and padding-right.