posit-dev / posit-dev/positron

Right-alignment for table headings and cells containing text in right-to-left languages

Open
#7,989 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: data explorer enhancement i18n l10n
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

System details:

Positron and OS details:

Positron Version: 2025.07.0 (Universal) build 49
Code - OSS Version: 1.100.0
Commit: 8b3e95ab7926c0643351147fdbcc1145ab8f5510
Date: 2025-06-05T03:33:36.609Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Interpreter details:

Python 3.13.0

Describe the issue:

Table headings and cells containing text in right-to-left languages (e.g., Arabic, Hebrew, Farsi, Urdu) are incorrectly displayed with left-alignment, disrupting natural readability and expected text flow for those languages.

Steps to reproduce the issue:

  1. Paste the following command in the terminal in order to create a .csv file containing text in right-to-left languages (e.g., Arabic, Hebrew, Farsi, and Urdu).
cat << EOF > rtl.csv
English,العربية,עברית,فارسی,اردو
Apple,تفاح,תפוח,سیب,سیب
Strawberry,فراولة,תות שדה,توت فرنگی,اسٹرابیری
Orange,برتقال,תפוז,پرتقال,مالٹا
Lemon,ليمون,לימון,لیمو,لیموں
Banana,موز,בננה,موز,کیلا
Grapes,عنب,ענבים,انگور,انگور
Watermelon,بطيخ,אבטיח,هندوانه,تربوز
EOF
  1. Notice that text, in both headings and cells, is left-aligned, instead of right-aligned.
Image

Expected or desired behavior:

Although I18N is not supported, it would be nice for right-to-left languages to be right-aligned, both in table headings and cell contents.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Positron using the provided rtl.csv data and confirm the alignment of headings and cell contents for Arabic, Hebrew, Farsi, and Urdu. Trace the table view responsible for rendering the CSV, then verify that right-to-left text is right-aligned without changing the English column behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.