Skip to content

Write your site in a right-to-left language

A language written right to left, such as Arabic or Hebrew, publishes with the layout mirrored, and the canvas shows it that way.

1 min readENFRNLDE
On this page 3 sections

Some languages are written from right to left, such as Arabic, Hebrew, Persian and Urdu. When one of your site's languages is one of them, its pages are published right to left and the layout turns around with the text. You set nothing: the direction follows the language.

What mirrors

  • Stacks, grids, pinned layers, padding, rounded corners and text alignment mirror: what sits at the start of a line sits on the right.
  • A carousel scrolls from the right, with its arrows on the opposite sides, and the left arrow steps forward. A lightbox's buttons swap sides, and its left arrow shows the next image. A Ticker runs the other way.
  • These don't mirror: transforms, shadows, gradient angles, images and video, vector drawings and SVGs, embeds and code components.

Which languages

The direction comes from the language code. A script in the code decides first: ar-Latn is written left to right, and az-Arab right to left. The AI agent knows which of your languages are written right to left.

On the canvas

The canvas shows such a language mirrored too. What you do to the layout while you look at it (moving, resizing, aligning, dropping) is stored as the left-to-right layout, so that this language shows it as you made it.