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

Aperta Adatta ai principianti
#67,064 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Inizia da en.ts e zh.ts, dove sono identificate le 16 voci settings.* mancanti. Aggiungi traduzioni in cinese corrispondenti alle chiavi e al testo sorgente in inglese, mantenendo la struttura delle chiavi identica in entrambi i file di locale. La modifica è completa quando ogni chiave en.ts delle settings elencata ha una voce corrispondente in zh.ts e nessuna etichetta delle settings ricade sull'inglese.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
230k
Fork
31.3k
Merge medio
5h 32m
PR unite (30g)
453

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.