Files
wekan/docs/Features/Editor/RTL
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00
..

Right-to-Left (RTL) UI

What it is

WeKan has a full right-to-left user interface on every page when an RTL language is selected: menus, lists, cards and popups are mirrored, so Arabic, Persian, Hebrew and the other right-to-left languages read naturally.

Read more

How to use it

  1. Use the language selector on the login page, or your member settings, to switch languages. See Change Language.
  2. Choose an RTL language. The whole UI mirrors at once, with no reload.
  3. Choose a left-to-right language to switch back.

How the numbers are calculated

There are no numbers. A language is RTL when its entry in imports/i18n/languages.js has the rtl flag true; there are 16 such entries: Arabic (ar, ar-DZ, ar-EG), Moroccan Arabic (ary), Central Kurdish (ckb), Persian/Farsi (fa, fa-IR), Hebrew (he, he-IL), Kashmiri (ks), Pashto (ps), Sindhi (sd), Uyghur (ug), Urdu (ur), Uzbek-Arabic (uz-AR) and Yiddish (yi). An older version of this page listed only Arabic, Persian, Hebrew, Uyghur, Uzbek-Arabic and Yiddish.

How it works in WeKan

  • TAPi18n.isRTL() and getLanguageDirection() in imports/i18n/tap.js read that flag.
  • The root <html> element gets a reactive dir="rtl" / dir="ltr" attribute (and lang) that follows the chosen language (client/lib/i18n.js), so the direction (and screen-reader pronunciation) switches instantly.
  • Component CSS uses CSS logical properties (for example margin-inline-start instead of margin-left, inset-inline-start instead of left, text-align: start instead of text-align: left, float: inline-start instead of float: left), so layouts flip automatically with dir. A check mark's border is the one physical side the tests allow.
  • RTL tests: tests/rtl.test.js (fast, server-less) and the Playwright tests/playwright/specs/18-rtl-layout.e2e.js.

Commits