[Bug]: No RTL support - Persian/Arabic/Hebrew text renders left-to-right
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- css, html, javascript
- Ambito
- frontend, internationalization
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Shell
- Stelle
- 89
- Fork
- 7
- Merge medio
- 2h 46m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CommandCodeAI/desktop
-
[UI Bug][macOS] Sidebar toggle is vertically misaligned with window controlsForse già presa @aliarain l’ha presa 5 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
CommandCodeAI/desktop#125 · 1 commento · 1 assegnatario ·
-
[Feedback]: add copy block under a code blockForse già presa @aliarain l’ha presa 10 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/desktop#94 · 1 assegnatario ·
-
[Feedback]: Add Expand & Collapse for changesForse già presa @aliarain l’ha presa 10 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/desktop#66 · 1 commento · 2 reazioni · 1 assegnatario ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
CommandCodeAI/desktop#135 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
CommandCodeAI/desktop#134 ·
Tutte le issue di CommandCodeAI/desktop
Issue simili
-
[arch] gate_sync.sh: stale remote tmp files on install failure; overlapping cron runs unguardedApertaarch area:fleet priority:p3 severity:low track:hosted-product
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
objectionary/hone-maven-plugin#1295 ·
I maintainer di solito rispondono entro 1 giorno
-
CI tracking issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
STRML/cc-autodream#138 ·