Pages
Right to left
Every language gets its own address, and Arabic reads right to left: the whole site mirrors. Here is the same markup both ways round, and what it takes, with the lines that do it.
One address per language
The same markup, both ways round
Both boxes are the same markup, written with start and end; only their direction differs. The coloured edge, the order and the arrow all follow it.
What it takes
The page's language and direction
void-fbtee's middleware reads the language from the address, sets lang and dir on the page, and lists the same page in every language for search engines (hreflang).
export { default } from "void-fbtee/middleware";Start and end, never left and right
Spacing and alignment are written as start and end, so the same markup mirrors by itself in Arabic, as in the boxes above. An icon that points a way is flipped.
<div className="ms-auto flex h-14 items-center gap-1"><ChevronRight className="size-3.5 rtl:-scale-x-100" />Text in another language
What people post is in their language, not the page's. It's marked with its own language and direction, with void-fbtee's langAttrs, so an English title on an Arabic page, or an Arabic one on an English page, reads the right way round.
<bdi {...langAttrs(event.locale)}>{event.venue}</bdi>What stays left to right
Code, commands and web addresses read left to right in every language. In a right-to-left page their parts would come out reversed, so they're marked left to right.
<bdi dir="ltr" className="whitespace-nowrap">Used here, and explained on the Components page: langAttrs, useLocales, Link and LanguagePicker.
The full reference is in void-fbtee's skill.