[Bug]: No RTL support - Persian/Arabic/Hebrew text renders left-to-right
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 52/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- css, html, javascript
- Bereich
- frontend, internationalization
Rechercherichtung
Start by tracing the Settings interface-language picker and the locale helper referenced in the renderer bundle at out/renderer/assets, including its existing document.documentElement.lang assignment. Check the renderer’s layout CSS and code, terminal, and file-path surfaces; done means RTL locales are selectable, the root direction and mirrored layout work, and code-related content remains LTR.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
GUI version
0.1.46
Operating system
Linux (Debian/Ubuntu)
Reproduction steps
- Open Command Code Desktop.
- Go to Settings → General → Language and open the Interface language picker. Only English and 简体中文 are offered.
- Type Persian (or any other RTL-script language such as Arabic or Hebrew) into the chat composer, or paste it into an agent message.
- Observe the direction/alignment of the text and how it mixes with Latin text and code.
Expected behavior
- RTL-script text (Persian/Arabic/Hebrew) should render right-aligned with correct bidirectional ordering.
- When an RTL interface language is selected, the app layout should flip to RTL (i.e.
<html dir="rtl">), and mirrored UI (sidebar, icons that indicate direction, popovers, etc.) should follow. - Code blocks and inline code should stay LTR even inside RTL content.
Actual behavior
- Interface languages are limited to
enandzh(UZ = ["en","zh"]in the renderer bundle), so there is no Persian/RTL locale. - The root element never receives a
dirattribute. The locale helper only setsdocument.documentElement.lang(C2[e].htmlLang, e.g.en,zh-Hans) and there is no[dir=rtl]/ logical-property CSS in the renderer bundle. - As a result, Persian text typed into the composer and messages is laid out left-to-right and mixed Persian/Latin/code content breaks bidi ordering (punctuation and numbers jump to the wrong side).
Proposed fix
- Add RTL locales (at minimum
fa, plusar,he,ur) to the interface-language list in Settings. - Mirror the layout when the active language direction is RTL: set
document.documentElement.dir = i18next.dir(lng)(i18next already returns"rtl"for these languages) alongside the existinglangassignment. - Use CSS logical properties (
margin-inline-start,padding-inline,inset-inline,text-align: start/end) instead of hard-codedleft/right, and add[dir=rtl]overrides where mirroring is needed. - Force
dir="ltr"on code blocks / inline code / terminal and file-path surfaces so code stays readable.
Screenshots, recordings, or sanitized logs
Not attached. The behavior is reproducible from the steps above; the code references (UZ = ["en","zh"], no dir assignment, no [dir=rtl] rules) are from the installed renderer bundle at out/renderer/assets.
Safety check
- I removed credentials and private project information from this report.
- Vorherrschende Sprache
- Shell
- Sterne
- 89
- Forks
- 7
- Ø Merge
- 2 Std. 46 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CommandCodeAI/desktop
-
[UI Bug][macOS] Sidebar toggle is vertically misaligned with window controlsEvtl. vergeben @aliarain hat das vor 4 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
CommandCodeAI/desktop#125 · 1 Kommentar · 1 zugewiesene Person ·
-
[Feedback]: add copy block under a code blockEvtl. vergeben @aliarain hat das vor 9 Tagen übernommen. Offenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/desktop#94 · 1 zugewiesene Person ·
-
[Feedback]: Add Expand & Collapse for changesEvtl. vergeben @aliarain hat das vor 9 Tagen übernommen. Offenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/desktop#66 · 1 Kommentar · 2 Reaktionen · 1 zugewiesene Person ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
CommandCodeAI/desktop#135 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
CommandCodeAI/desktop#134 ·
Alle Issues in CommandCodeAI/desktop
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
community-scripts/ProxmoxVE#17674 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-review-finding chore
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
jordansmall/spindrift#4432 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Request]: Improve robustness and path resolution in ensure-hawkeye.shEvtl. vergeben @denizguney hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/WindowsDeveloperConfig#139 ·
Maintainer antworten meist innerhalb von 1 Tag