Test a bilingual interface with a product code
A Persian page with a Latin name, an order code and a price is a better test than a plain paragraph. A punctuation mark in the wrong place can make a correct code look unfamiliar.
In this guide
Set language and direction separately
Give a Persian page the language fa and direction rtl. Give the English version en and ltr. Right-aligning text alone does not set its reading order. Express spacing at the logical start or end so controls adapt when the language switches.
Isolate the variable part
In a Persian label containing GC-101 and a colour in parentheses, isolate the known product code as left-to-right text. An unknown customer-supplied name can use bdi. Keep the stored character order intact so copying the code returns its original value.
Read the narrow and printed versions
Create a test row with a Persian name, GC-101, a price and parentheses. Read it on desktop, a narrow phone and the print view. Copy just the code and compare it with the original. Repeat for an enquiry title and an email field.
Sources & further reading

