# Right-to-left layouts: what threefold checks and what it does not

> threefold has no check for right-to-left layout yet. What a right-to-left market needs, which checks help a little, and where the gap is.

threefold has **no check for right-to-left (RTL) layout yet**. None of the ten markets it collects today (the United Kingdom, the United States, Spain, Mexico, Argentina, Brazil, Germany, France, Japan and South Korea) reads right to left. Saudi Arabia is planned for the next wave and the United Arab Emirates for a later one, and a check will come with them. This page says what to test yourself in the meantime and which existing checks help.

## What a right-to-left market needs

- **Direction on the page.** The `dir="rtl"` attribute on the root element, with the right `lang`. [W3C: setting dir in HTML](https://www.w3.org/International/questions/qa-html-dir).
- **Layout that mirrors.** Margins, padding, floats and positions written with logical properties (`margin-inline-start`, not `margin-left`) flip by themselves. [MDN: CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
- **Icons that mirror, and icons that do not.** An arrow that means "next" flips; a clock, a logo or a phone does not.
- **Mixed text.** A price, a Latin brand name or a phone number inside Arabic text can reorder punctuation unless it is isolated.
- **Native layouts.** Use start and end, never left and right, in Android and iOS layouts, and test with the system set to an RTL language.

## What threefold checks today that helps a little

| Check | Why it helps | Measured status |
|---|---|---|
| `CHK-WEB-003` | The page declares a valid `lang`, which RTL styling depends on | see the report |
| `CHK-RUN-WEB01` | Renders web routes with 30 to 40% longer text and accented characters and catches clipping. | production |
| `CHK-RUN-IOS01`, `CHK-RUN-AND01` | Double-length and `en-XA` runs catch clipping on devices. Need a simulator or an emulator | not measured |

None of them mirrors a layout or reads `dir`. A page that passes all of them can still be broken in Arabic.

## Run what exists

```sh
npx threefold check . --markets de-DE
```

If `npx` reports that the package does not exist, it has not been published yet: the [i18n check page](https://threefold.eco/i18n-check/) and the guides say what works meanwhile.

These run for the locales you pass; none of them is specific to right-to-left.

## Questions

### Will threefold add an RTL check?
It is planned with the first right-to-left market. Nothing here claims one exists.

### Can an agent test RTL for me?
It can start the app in an RTL locale and read the screens; threefold does not provide that test.
