mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- 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 !
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
- Right-to-left script on Wikipedia.
- The HTML
dirattribute and CSS logical properties on MDN. - WeKan pages: Change Language, Accessibility, Translations.
How to use it
- Use the language selector on the login page, or your member settings, to switch languages. See Change Language.
- Choose an RTL language. The whole UI mirrors at once, with no reload.
- 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()andgetLanguageDirection()in imports/i18n/tap.js read that flag.- The root
<html>element gets a reactivedir="rtl"/dir="ltr"attribute (andlang) 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-startinstead ofmargin-left,inset-inline-startinstead ofleft,text-align: startinstead oftext-align: left,float: inline-startinstead offloat: left), so layouts flip automatically withdir. 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
- A checked checkbox sits on its own square in RTL languages too
- The rtl test allows a check mark's physical border
- A checked checkbox is a check mark in RTL languages too
- Urdu strings and wider RTL browser coverage
- Compact the language registry
- Removed Azeri from the RTL list
- RTL information about languages
- Fixed RTL issue 884