[i18n] 6 settings keys missing from zh-CN in 2.4.2 (10 more on dev)

Đang mở Phù hợp với người mới
#67,064 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Bắt đầu với en.ts và zh.ts, nơi xác định 16 mục settings.* còn thiếu. Thêm bản dịch tiếng Trung khớp với các khóa và văn bản nguồn tiếng Anh, đồng thời giữ cấu trúc khóa giống nhau trên cả hai tệp locale. Thay đổi hoàn tất khi mọi khóa settings en.ts được liệt kê đều có mục tương ứng trong zh.ts và không nhãn settings nào quay về tiếng Anh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/desktop platform/macos status/repro-plausible type/bug version/v2
Description

Correction after review: the first version compared the dev tree and labelled it "2.4.2". Only 6 of the 16 keys exist in 2.4.2; the other 10 were added after 2.4.2.

2.4.2 (released)

Verified by unpacking the macOS 2.4.2 app.asar and checking both dictionaries. Each locale is layered over English, so an absent zh key shows the English string.

Key English source
settings.general.row.tabGrouping.title Group tabs
settings.general.row.tabGrouping.none None
settings.general.row.tabGrouping.project By project
settings.general.row.tabGrouping.server By server
settings.general.row.questionSubmitKey.title Submit question answers with
settings.general.row.questionSubmitKey.description The key that moves to the next question or submits. {{keybind}} selects an answer or starts a new line in your own answer.

settings.general.row.language.title is 语言 in the same bundle, so the fallback is visible next to translated labels.

dev (d63a39e27) and later releases

These 10 keys do not exist in the 2.4.2 bundle. They are present in en.ts on dev and missing from zh.ts:

Key English source
settings.experimental.row.questionComposer.title New question UI
settings.experimental.row.questionComposer.description Answer questions from the composer
settings.about.notices.openMono The code and terminal font. It is built on Iosevka.
settings.about.notices.nerdFonts The terminal icons in OpenMono.
settings.general.row.smoothScrolling.title Smooth scrolling
settings.general.row.smoothScrolling.description Animate mouse-wheel scrolling. Applies after restarting OpenCode
settings.general.row.keepServiceRunning.title Keep running in the background
settings.general.row.keepServiceRunning.description Keep sessions, terminals and MCP servers going after you quit. Turn off to stop OpenCode, including for the CLI, when the app quits
settings.permissions.tool.shell.title Shell
settings.permissions.tool.subagent.title Subagent
Expected

Every settings.* key present in en.ts has a zh entry in the same release.

Actual

The 6 released keys render in English in Settings. The dev keys will do the same once released.

How this was checked

No app run in Chinese was used for the comparison. I unpacked app.asar from the installed 2.4.2 macOS build and searched the shipped zh-*.js bundle for each key. The 6 keys above are present in the English bundle and absent from the Chinese one; the other 10 have no hits in 2.4.2. On dev, all 16 are in en.ts and missing from zh.ts.

Ngôn ngữ chính
TypeScript
Star
230k
Fork
31.3k
Merge trung bình
5 giờ 32 phút
Pull request đã merge (30 ngày)
453

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode

Tất cả issue của anomalyco/opencode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.