Skip to content

Commit 9dff0b8

Browse files
neriousyolcanaskarOrlovKSMiRHaDidat-rd
authored
fix(i18n): fix a batch of mistranslations and misplaced labels (#66805)
Co-authored-by: Olcan Askar <aabdullaholcan@gmail.com> Co-authored-by: OrlovKS <kys.tok@ya.ru> Co-authored-by: Hossein Mirhadi <ho3in.mirhadi@gmail.com> Co-authored-by: dat-rd <thanhdat.rd.70369@gmail.com> Co-authored-by: чеснок <68599854+KPGVM@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: anastasio <Zxl2024903531@outlook.com> Co-authored-by: 王梓峰 <1805827169@qq.com>
1 parent 8815bc9 commit 9dff0b8

75 files changed

Lines changed: 649 additions & 438 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.opencode/glossary/uk.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# uk Glossary
2+
3+
## Sources
4+
5+
- Review of the desktop app's Ukrainian UI copy
6+
7+
## Do Not Translate (Locale Additions)
8+
9+
- `OpenCode` (preserve casing in prose; keep `opencode` only in commands, package names, paths, or code)
10+
- `OpenCode CLI`
11+
- `CLI`, `TUI`, `MCP`, `LSP`, `OAuth` (never transliterate them as `МКП` or `ЛСП`)
12+
- Commands, flags, file paths, and code literals (keep exactly as written)
13+
14+
## Preferred Terms
15+
16+
| English | Preferred | Notes |
17+
| ------------------------------------------------ | ------------------------------ | --------------------------------------------------------------------------- |
18+
| session | сесія | Not `сеанс` |
19+
| project | проєкт | 2019 orthography, not `проект` |
20+
| worktree | робоче дерево | Not `робоча область` or `робоче місце` |
21+
| Experimental (settings tab) | Експериментальні функції | Not the bare adjective `Експериментальний` |
22+
| shell (tool, activity category, mode) | Термінал | `Використано: Читання, Запис, Термінал`; `режим термінала` |
23+
| shell (a running command or process) | команда | `3 команди`, `запущено 2 команди`, `Очікування команди`, `Зупинити команду` |
24+
| shell command | команда термінала | `Введіть команду термінала…` |
25+
| shell (bash, zsh, PowerShell chosen in settings) | оболонка | Only where the user picks the shell program itself |
26+
| terminal (genitive) | термінала | Not `терміналу` |
27+
| About (settings tab) | Про OpenCode | Not a bare `Про` |
28+
| third-party notices | ліцензії сторонніх компонентів | Not `повідомлення третіх сторін` |
29+
| Released under the MIT License | Поширюється за ліцензією MIT | |
30+
31+
## Guidance
32+
33+
- Prefer natural Ukrainian phrasing over literal translation
34+
- Keep tone clear and direct in UI labels and docs prose
35+
- Fill every plural form the locale uses: `.one`, `.few`, `.many`, `.other`
36+
- Keep the English punctuation of short taglines when it reads naturally (for example `OpenCode, агент кодування з відкритим кодом`)
37+
- Preserve technical artifacts exactly: commands, flags, code, URLs, model IDs, and file paths
38+
39+
## Avoid
40+
41+
- Avoid `оболонка` for shell activity, counts, and tool labels; it reads as jargon next to `Читання` and `Запис`
42+
- Avoid translating product and protocol names that are fixed identifiers
43+
- Avoid mixing multiple Ukrainian terms for the same recurring UI action once a preferred term is established

‎.opencode/glossary/vi.md‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# vi Glossary
2+
3+
## Sources
4+
5+
- PR #55925: https://github.com/anomalyco/opencode/pull/55925 (terminology fixes in this file)
6+
- PR #55922: https://github.com/anomalyco/opencode/pull/55922 (Vietnamese Console locale)
7+
- Existing Vietnamese copy on dev: `packages/app/src/runtime/i18n/vi.ts`, `packages/ui/src/i18n/vi.ts`, `README.vi.md`
8+
9+
## Do Not Translate (Locale Additions)
10+
11+
- `OpenCode` (preserve casing in prose; keep `opencode` only in commands, package names, paths, or code)
12+
- `Zen`, `Go`, `Go Plus`, `Black`, `Enterprise`, `Models.dev`
13+
- `TUI`, `LSP`, `LLM`, `API`, `CLI`, `MCP`, `SSO`, `SDK`, `IDE`, `SSE`, `ZDR`, `MIT License`
14+
- `terminal`, `desktop`, `web`, `shell`
15+
- Plan names such as `Black 20`, `Black 100`, `Black 200`
16+
- Commands, flags, file paths, and code literals (keep exactly as written)
17+
18+
## Preferred Terms
19+
20+
| English | Preferred | Notes |
21+
| -------------------------- | --------------------- | -------------------------------------------------------- |
22+
| coding agent (the product) | `trợ lý lập trình AI` | Matches the tagline already used in `README.vi.md` |
23+
| agent (an instance) | `tác nhân` | Used in app UI copy; keep consistent with `packages/app` |
24+
| session | `phiên` | Matches `packages/app/src/runtime/i18n/vi.ts` |
25+
| file | `tệp` | `tệp đính kèm` for attachment |
26+
| provider | `nhà cung cấp` | |
27+
| model | `mô hình` | |
28+
| docs | `tài liệu` | |
29+
| download | `tải về` | |
30+
| sign in / log in | `đăng nhập` | |
31+
| sign up | `đăng ký` | |
32+
| subscribe | `đăng ký` | Prefer `đăng ký gói ...` for plans |
33+
| cancel | `hủy` | |
34+
| privacy | `quyền riêng tư` | |
35+
| settings | `cài đặt` | |
36+
| usage limits | `hạn mức sử dụng` | |
37+
| top up (balance/credit) | `nạp thêm` | `nạp thêm số dư` / `nạp thêm tín dụng` |
38+
| refund | `hoàn tiền` | |
39+
| waitlist | `danh sách chờ` | |
40+
| server | `máy chủ` | |
41+
| workspace | `không gian làm việc` | |
42+
| brand | `thương hiệu` | |
43+
| changelog | `nhật ký thay đổi` | |
44+
| local models | `mô hình chạy cục bộ` | |
45+
| prompt | `lời nhắc` | |
46+
| token | `token` | Keep in English; do not use `mã thông báo` |
47+
| skill | `kỹ năng` | Matches the app UI label for the skills tab |
48+
| plugin | `tiện ích mở rộng` | Matches the app UI label for extensions |
49+
| command | `lệnh` | |
50+
| theme | `giao diện` | |
51+
| formatter | `trình định dạng` | |
52+
| compaction | `nén` | |
53+
| attachment | `tệp đính kèm` | |
54+
| data | `dữ liệu` | |
55+
56+
## Guidance
57+
58+
- Prefer natural Vietnamese phrasing over literal translation; short labels stay short
59+
- Keep language names static/native in language pickers: always `Tiếng Việt`, never a translated form
60+
- Keep `$` amounts in the original currency notation and numbers, e.g. `$10/month`
61+
- Vietnamese has no grammatical plural, so `*_one` and `*_other` strings may be identical
62+
- Write dates and numbers with the Latin digits used elsewhere in the UI
63+
64+
## Avoid
65+
66+
- Avoid translating language names differently per current locale in language lists
67+
- Avoid `mã nguồn` for `token` and `token` for `source code`
68+
- Avoid Sino-Vietnamese calques such as `chủ đề` for `topic` when `chủ đề` already means theme
69+
- Avoid translating `Zen`, `Go`, and `Black` as generic words like `đỉnh cao` or `đi`

‎packages/app/e2e/regression/session-request-docks.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ test("shows a pending permission dock", async ({ page }) => {
452452

453453
const permission = page.locator('[data-component="dock-prompt"][data-kind="permission"]')
454454
await expect(permission).toBeVisible()
455+
await expect(permission.getByText("Run shell commands", { exact: true })).toBeVisible()
455456
await expect(permission.getByText("git status")).toBeVisible()
456457
await expect(permission.getByText("git diff")).toBeVisible()
457458
await expect(permission.locator('[data-slot="permission-footer-actions"] button')).toHaveCount(3)

‎packages/app/src/runtime/i18n/am.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,10 @@ export const dict = {
504504
"settings.permissions.tool.list.description": "ፋይሎችን በማውጫ ውስጥ ይዘርዝሩ",
505505
"settings.permissions.tool.bash.title": "Bash",
506506
"settings.permissions.tool.bash.description": "የሼል ትዕዛዞችን አሂድ",
507+
"settings.permissions.tool.shell.description": "የሼል ትዕዛዞችን አሂድ",
507508
"settings.permissions.tool.task.title": "ተግባር",
508509
"settings.permissions.tool.task.description": "ንዑስ ወኪሎችን አስጀምር",
510+
"settings.permissions.tool.subagent.description": "ንዑስ ወኪሎችን አስጀምር",
509511
"settings.permissions.tool.skill.title": "ክህሎት",
510512
"settings.permissions.tool.skill.description": "ችሎታ በስም ጫን",
511513
"settings.permissions.tool.lsp.title": "LSP",

‎packages/app/src/runtime/i18n/ar.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,10 @@ export const dict = {
493493
"settings.permissions.tool.list.description": "سرد الملفات داخل دليل",
494494
"settings.permissions.tool.bash.title": "Bash",
495495
"settings.permissions.tool.bash.description": "تشغيل أوامر shell",
496+
"settings.permissions.tool.shell.description": "تشغيل أوامر shell",
496497
"settings.permissions.tool.task.title": "مهمة",
497498
"settings.permissions.tool.task.description": "تشغيل الوكلاء الفرعيين",
499+
"settings.permissions.tool.subagent.description": "تشغيل الوكلاء الفرعيين",
498500
"settings.permissions.tool.skill.title": "مهارة",
499501
"settings.permissions.tool.skill.description": "تحميل مهارة بالاسم",
500502
"settings.permissions.tool.lsp.title": "LSP",

‎packages/app/src/runtime/i18n/az.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,10 @@ export const dict = {
519519
"settings.permissions.tool.list.description": "Qovluq daxilindəki faylları siyahıla",
520520
"settings.permissions.tool.bash.title": "Bash",
521521
"settings.permissions.tool.bash.description": "Shell əmrlərini işlət",
522+
"settings.permissions.tool.shell.description": "Shell əmrlərini işlət",
522523
"settings.permissions.tool.task.title": "Tapşırıq",
523524
"settings.permissions.tool.task.description": "Alt agentləri işə sal",
525+
"settings.permissions.tool.subagent.description": "Alt agentləri işə sal",
524526
"settings.permissions.tool.skill.title": "Bacarıq",
525527
"settings.permissions.tool.skill.description": "Adla bacarıq yüklə",
526528
"settings.permissions.tool.lsp.title": "LSP",

‎packages/app/src/runtime/i18n/bg.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,10 @@ export const dict = {
515515
"settings.permissions.tool.list.description": "Избройте файлове в директория",
516516
"settings.permissions.tool.bash.title": "Баш",
517517
"settings.permissions.tool.bash.description": "Изпълнете shell команди",
518+
"settings.permissions.tool.shell.description": "Изпълнете shell команди",
518519
"settings.permissions.tool.task.title": "Задача",
519520
"settings.permissions.tool.task.description": "Стартиране на подагенти",
521+
"settings.permissions.tool.subagent.description": "Стартиране на подагенти",
520522
"settings.permissions.tool.skill.title": "Умение",
521523
"settings.permissions.tool.skill.description": "Заредете умение по име",
522524
"settings.permissions.tool.lsp.title": "LSP",

‎packages/app/src/runtime/i18n/bn.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,10 @@ export const dict = {
515515
"settings.permissions.tool.list.description": "একটি ডিরেক্টরির মধ্যে ফাইল তালিকা",
516516
"settings.permissions.tool.bash.title": "Bash",
517517
"settings.permissions.tool.bash.description": "শেল কমান্ড চালান",
518+
"settings.permissions.tool.shell.description": "শেল কমান্ড চালান",
518519
"settings.permissions.tool.task.title": "টাস্ক",
519520
"settings.permissions.tool.task.description": "সাব-এজেন্ট চালু করুন",
521+
"settings.permissions.tool.subagent.description": "সাব-এজেন্ট চালু করুন",
520522
"settings.permissions.tool.skill.title": "দক্ষতা",
521523
"settings.permissions.tool.skill.description": "নাম দ্বারা একটি দক্ষতা লোড",
522524
"settings.permissions.tool.lsp.title": "LSP",

‎packages/app/src/runtime/i18n/br.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,10 @@ export const dict = {
701701
"settings.permissions.tool.list.description": "Listar arquivos dentro de um diretório",
702702
"settings.permissions.tool.bash.title": "Bash",
703703
"settings.permissions.tool.bash.description": "Executar comandos shell",
704+
"settings.permissions.tool.shell.description": "Executar comandos shell",
704705
"settings.permissions.tool.task.title": "Tarefa",
705706
"settings.permissions.tool.task.description": "Iniciar subagentes",
707+
"settings.permissions.tool.subagent.description": "Iniciar subagentes",
706708
"settings.permissions.tool.skill.title": "Habilidade",
707709
"settings.permissions.tool.skill.description": "Carregar uma habilidade por nome",
708710
"settings.permissions.tool.lsp.title": "LSP",

‎packages/app/src/runtime/i18n/bs.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,10 @@ export const dict = {
535535
"settings.permissions.tool.list.description": "Listanje datoteka unutar direktorija",
536536
"settings.permissions.tool.bash.title": "Bash",
537537
"settings.permissions.tool.bash.description": "Pokretanje shell komandi",
538+
"settings.permissions.tool.shell.description": "Pokretanje shell komandi",
538539
"settings.permissions.tool.task.title": "Zadatak",
539540
"settings.permissions.tool.task.description": "Pokretanje pod-agenta",
541+
"settings.permissions.tool.subagent.description": "Pokretanje pod-agenta",
540542
"settings.permissions.tool.skill.title": "Vještina",
541543
"settings.permissions.tool.skill.description": "Učitaj vještinu po nazivu",
542544
"settings.permissions.tool.lsp.title": "LSP",

0 commit comments

Comments
 (0)