Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[Bug]: No RTL support - Persian/Arabic/Hebrew text renders left-to-right

Offen
#131 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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

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
  1. Open Command Code Desktop.
  2. Go to Settings → General → Language and open the Interface language picker. Only English and 简体中文 are offered.
  3. Type Persian (or any other RTL-script language such as Arabic or Hebrew) into the chat composer, or paste it into an agent message.
  4. 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 en and zh (UZ = ["en","zh"] in the renderer bundle), so there is no Persian/RTL locale.
  • The root element never receives a dir attribute. The locale helper only sets document.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
  1. Add RTL locales (at minimum fa, plus ar, he, ur) to the interface-language list in Settings.
  2. 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 existing lang assignment.
  3. Use CSS logical properties (margin-inline-start, padding-inline, inset-inline, text-align: start/end) instead of hard-coded left/right, and add [dir=rtl] overrides where mirroring is needed.
  4. 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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommandCodeAI/desktop

Alle Issues in CommandCodeAI/desktop

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.