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

Ouverte Adaptée aux débutants
#67,064 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
1/5
Temps estimé
1-3 heures
Accessibilité débutants
88/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript

Piste de recherche

Commencez par en.ts et zh.ts, où les 16 entrées settings.* manquantes sont identifiées. Ajoutez des traductions chinoises correspondant aux clés et au texte source anglais, en conservant une structure de clés identique dans les deux fichiers de locale. La modification est terminée lorsque chaque clé en.ts de settings listée a une entrée correspondante dans zh.ts et qu'aucune étiquette de settings ne retombe en anglais.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
230k
Forks
31.3k
Merge moyen
5 h 32 min
PR mergées (30 j)
453

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de anomalyco/opencode

Toutes les issues de anomalyco/opencode

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.