Skip to content

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

Backlog

Description

@jabarijby0706

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 (d63a39e) 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.

Activity

  1. added
    area/desktop
    type/bug
    version/v2
    on Nov 29, 2026
  2. opencodejr commented on Nov 29, 2026

    @opencodejr
    Contributor

    Not observed; this looks likely from reading the code.

    Thanks for the detailed list. I confirmed this from the released files and the source, without running the app in Chinese.

    • Released 2.4.2: I unpacked the official v2.4.2 Linux desktop package. The English dictionary in its app bundle has settings.general.row.tabGrouping.* (Group tabs / None / By project / By server) and settings.general.row.questionSubmitKey.*. The Simplified Chinese dictionary has none of them, while nearby labels such as settings.general.row.language.title (语言) are translated. Each language is layered over English, so these labels show in English.
    • Latest dev (d63a39e27): all 16 keys in your table are in en.ts and missing from zh.ts.

    One correction: only 6 of the 16 keys exist in 2.4.2 (the four tab grouping keys and the two question submit keys). The other 10 (question composer, OpenMono notices, smooth scrolling, keep running in the background, and the Shell/Subagent permission titles) were added after 2.4.2, so they apply to dev and later releases.

    Related:

    The script below repeats both checks.

    Reproduction script (check-zh.sh)
    #!/usr/bin/env bash
    # Checks the zh-CN settings strings reported in anomalyco/opencode#67064.
    # 1) In the released OpenCode Desktop 2.4.2 Linux .deb: inspect the shipped renderer bundle.
    # 2) In a source checkout (default: current dev): compare en.ts and zh.ts.
    # Usage: check-zh.sh [repo checkout]
    set -euo pipefail
    repo=${1:-/workspace/repo}
    work=$(mktemp -d)
    cd "$work"
    curl -sL -o d.deb https://github.com/anomalyco/opencode/releases/download/v2.4.2/opencode-desktop-linux-amd64.deb
    dpkg-deb -x d.deb x
    npx -y @electron/asar extract x/opt/OpenCode/resources/app.asar a >/dev/null
    assets=a/out/renderer/assets
    zh=$(grep -l "运行 shell 命令" "$assets"/*.js | head -1)   # the zh dictionary chunk
    echo "== Released desktop 2.4.2 (zh chunk: $(basename "$zh")) =="
    grep -o '"settings.general.row.language.title":[^,]*' "$zh"   # a translated key, for comparison
    for k in tabGrouping.title tabGrouping.none tabGrouping.project tabGrouping.server questionSubmitKey.title questionSubmitKey.description; do
      key="settings.general.row.$k"
      en=$(grep -oh "$key\"*:[^,]*" "$assets"/main-*.js "$assets"/shell-*.js | head -1 || true)
      zhv=$(grep -o "\"$key\":[^,]*" "$zh" | head -1 || true)
      echo "$key  en=[$en]  zh=[${zhv:-MISSING}]"
    done
    echo "== Source checkout $(git -C "$repo" rev-parse --short HEAD) =="
    d="$repo/packages/app/src/runtime/i18n"
    for key in settings.experimental.row.questionComposer.title settings.experimental.row.questionComposer.description \
      settings.general.row.tabGrouping.title settings.general.row.tabGrouping.none settings.general.row.tabGrouping.project settings.general.row.tabGrouping.server \
      settings.about.notices.openMono settings.about.notices.nerdFonts \
      settings.general.row.questionSubmitKey.title settings.general.row.questionSubmitKey.description \
      settings.general.row.smoothScrolling.title settings.general.row.smoothScrolling.description \
      settings.general.row.keepServiceRunning.title settings.general.row.keepServiceRunning.description \
      settings.permissions.tool.shell.title settings.permissions.tool.subagent.title; do
      echo "$key  en.ts:$(grep -c "\"$key\"" "$d/en.ts")  zh.ts:$(grep -c "\"$key\"" "$d/zh.ts" || true)"
    done

    Run it: bash check-zh.sh

  3. added
    status/repro-plausible
    on Nov 29, 2026
  4. changed the title [-][i18n] 16 settings strings still fall back to English in zh-CN (2.4.2)[/-] [+][i18n] 6 settings keys missing from zh-CN in 2.4.2 (10 more on dev)[/+] on Nov 29, 2026
  5. jabarijby0706 commented on Nov 29, 2026

    @jabarijby0706
    Author

    Thanks for checking the shipped bundle — you're right, and I've corrected the issue and its title.

    Confirmed on the installed macOS 2.4.2 build by unpacking app.asar:

    • 2.4.2: tabGrouping.* and questionSubmitKey.* are present in the English bundle and absent from the shipped zh-*.js, next to 语言. The other 10 keys have no hits in 2.4.2 at all.
    • dev d63a39e: all 16 are in en.ts and missing from zh.ts.

    So the actionable bug for released builds is the 6 keys; the 10 dev keys are a heads-up for the next release. I did not run the app in Chinese for this check, and the report now says so.

  6. jabarijby0706 commented on Nov 29, 2026

    @jabarijby0706
    Author

    Confirmed on my side: #66374 covers exactly the 8 keys you listed (questionSubmitKey.*, questionComposer.*, smoothScrolling.*, keepServiceRunning.*), at least by key name in its diff.

    For the released 2.4.2 build that leaves both visible gaps covered once things land: tabGrouping.* (4) by your change, questionSubmitKey.* (2) by #66374. No other duplicates from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/desktopplatform/macosstatus/repro-plausibletype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions