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

オープン 初心者向け
#67,064 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

en.ts と zh.ts から始めます。そこでは、不足している 16 個の settings.* エントリが特定されています。英語のキーとソーステキストに一致する中国語訳を追加し、両方の locale ファイルでキー構造を同一に保ちます。列挙されたすべての en.ts の settings キーに対応する zh.ts エントリがあり、どの settings ラベルも英語にフォールバックしない状態になれば、変更は完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
230k
フォーク
31.3k
平均マージ
5時間 32分
マージ済み PR(30日)
453

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。