Loading

فارسی

Accent color

Background

Skip to article
Design

A bilingual Persian and English site: what breaks only in right-to-left

From icons and arrows to numerals and fonts: common RTL layout problems and simple fixes.

Negar AhmadiHead of Product Design
1 min read

This article is also available in other languagesفارسی

A bilingual site is more than translated text. Direction, fonts, numerals and even the meaning of an arrow change.

Use logical properties

Use start and end instead of left and right. With margin-inline, padding-inline and text-align: start, one codebase works in both directions.

Arrows and directional icons

A "next" arrow points left in Persian. Don't flip neutral icons (search, settings); only icons that carry direction should be mirrored.

Numerals and fonts

Format numbers by page language and pick a suitable font for each. Protect Latin text inside a Persian sentence with dir="ltr" or isolation.

URLs and SEO

Give each language its own URL (such as /en), hreflang tags and the correct lang on html so search engines show the right version.

Likes and saves are currently kept in this browser only.

CommentsComing soon

We'd love to hear from you. Comments will be enabled soon.

Posting comments is not enabled yet.

The Mohtawa newsletterComing soon

Every two weeks, our best articles and lessons in your inbox.

Newsletter sign-up will be available soon.

Back to the blog