RTL support
Right-to-left layout support for Arabic, Hebrew, and other RTL languages — planned for a future release.
Warning
RTL layout support is planned but not yet implemented. This page documents the intended design so you know what’s coming and what to prepare for.
Planned behavior
When RTL support ships, adding an RTL locale (Arabic, Hebrew, etc.) will automatically:
- Set
dir="rtl"on the<html>element for that locale - Flip the three-column layout so the sidebar appears on the right
- Mirror all directional CSS using logical properties (
padding-inline-startinstead ofpadding-left, etc.)
The implementation will be driven by a RTL_LOCALES constant in src/lib/i18n.ts. Any locale in that list gets dir="rtl" from the TFunction.dir() method.
What you can do now
If you need RTL support before it’s implemented in Scrollup:
- Add
dir="rtl"manually toDocsLayout.astro’s<html>tag for your locale - Add a
customCssentry that overrides the directional properties you need - Submit a GitHub issue to track your use case
Implementation scope (when it ships)
The RTL sweep will touch ~15 files and replace:
| Current property | Logical equivalent |
|---|---|
padding-left / padding-right | padding-inline-start / padding-inline-end |
margin-left / margin-right | margin-inline-start / margin-inline-end |
border-left / border-right | border-inline-start / border-inline-end |
left / right (positioning) | inset-inline-start / inset-inline-end |
The three-column grid in DocsLayout will use named grid areas so RTL browsers flip sidebar placement automatically.
Last updated: April 6, 2026
Edit this page on GitHub