GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [i18n]: missing English keys in every locale cause mixed-language UI · Issue #64540 · anomalyco/opencode

[i18n]: missing English keys in every locale cause mixed-language UI #64540

New issue
Copy link
New issue
Copy link
Open
Open
[i18n]: missing English keys in every locale cause mixed-language UI#64540
Copy link
Labels
area/webWeb appplatform/macosmacOSstatus/repro-plausibleLikely from reading the code, not observedtype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@unovyatr24
unovyatr24
opened on Nov 17, 2026
Issue body actions

Description

packages/app/src/runtime/i18n/en.ts has 27 app-owned keys that at least one non-English dictionary does not translate; 23 of them are missing from all 62 locales. Each locale dictionary is merged on top of the English one ({ ...base, ...a.dict, ...b.dict } in language.tsx:112-114), so a missing key resolves to the English string, not undefined — the visible result is a mixed-language UI.

A 简体中文 user sees, for example:

Key English shown
settings.plugins.check Check for updates
settings.plugins.checking Checking for updates
settings.plugins.update Update
project.start.reconnect Reconnect
dialog.directory.breadcrumbs Folder path

Concrete places: Settings › Extensions plugin update button, the folder picker breadcrumb, and the project Reconnect state (thanks @opencodejr for confirming these on dev and bd115fd).

Expected

Every app-owned key in the English source has a translation in every locale, or is explicitly tracked as pending.

Steps to reproduce

  1. Check out bd115fd (or current dev).
  2. Compare the keys in packages/app/src/runtime/i18n/en.ts with zh.ts.
  3. 23 keys are absent from zh.ts; the runtime falls back to English for each one.

Version note

These 23 keys are not in the released @opencode/[email protected]. They landed on Nov 16–17 via #64220, #64241, #64212 and #64511, and are in the v2.3.1 tag, which is not on npm yet.

Why report this

#50772 proposed parity tests but was closed for not identifying a concrete translation failure. This is that failure. A parity test existed at packages/app/src/i18n/parity.test.ts until it was dropped in #41930. I intend to submit a small test-only PR that fails when a new English key is missing from every locale, with the currently missing keys in a temporary allow-list that shrinks as translations land.

Plugins

none

OpenCode version

source at commit bd115fd (package version 2.3.0; keys are in the v2.3.1 tag)

Operating System

macOS (reporter); the defect is locale data and platform-independent

Terminal

not applicable

Screenshot

not applicable — reproducible from dictionary contents

Activity

  1. opencodejr
    added
    area/webWeb app
    platform/macosmacOS
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 17, 2026
  2. opencodejr commented on Nov 17, 2026

    @opencodejr
    opencodejrBot
    on Nov 17, 2026
    Contributor
    More actions

    Not observed; this looks likely from reading the code.

    Thanks for the precise report. I confirmed it on the latest dev (9cfff5f) and at bd115fd by comparing the dictionaries. packages/app/src/runtime/i18n/en.ts has 23 keys that none of the 62 locale files translate. They are the keys you list, plus project.browse.*, settings.providers.disconnect.*, settings.providers.account.remove.*, settings.helpFeedback and a few others. They are all shown in the UI, for example the plugin Check for updates button in Settings › Extensions, the folder picker's breadcrumb label and the project Reconnect state.

    One small correction: t() does not return undefined for these keys. language.tsx builds each locale on top of the English dictionary ({ ...base, ...a.dict, ...b.dict }), so the English text is what shows. The visible result is the one you describe.

    Two notes on versions:

    • The released @opencode/[email protected] doesn't contain these 23 keys at all. They were added on Nov 16–17 (feat(app): replace Home in the desktop Projects sidebar #64220, feat(app): redesign the open project folder picker #64241, fix(app): confirm before disconnecting providers or removing accounts in settings #64212, feat(app): check for and install plugin updates in Settings › Extensions #64511) and are in the v2.3.1 tag, which isn't on npm yet. In 2.3.0, zh.ts was missing a much larger set (596 keys), and fix(app): add missing translations #64205 filled those in.
    • I confirmed this from the dictionary files and the code that renders these keys. I didn't run the app in Chinese.

    The script below prints the keys that every locale is missing for any git ref, for example missing-keys.sh /path/to/opencode HEAD.

    Related: #53858 and #51868 (earlier reports of zh keys falling back to English) and #50772 (an earlier parity-test proposal, closed as not planned).

    Reproduction script (missing-keys.sh)
    #!/usr/bin/env bash
    # Lists app-owned English keys (packages/app/src/runtime/i18n/en.ts) that no locale translates.
    # Usage: missing-keys.sh <repo checkout> [git ref]   (default ref: HEAD)
    set -euo pipefail
    repo=${1:-.}; ref=${2:-HEAD}; dir=packages/app/src/runtime/i18n
    keys() { git -C "$repo" show "$ref:$dir/$1" | grep -oE '^\s*"[A-Za-z0-9_.-]+"\s*:' | tr -d ' ":' | sort -u; }
    keys en.ts > /tmp/en.keys
    locales=$(git -C "$repo" ls-tree --name-only "$ref" "$dir/" | xargs -n1 basename | grep -E '^[a-z]{2,3}\.ts$' | grep -v '^en\.ts$')
    n=0; : > /tmp/missing.all
    for f in $locales; do n=$((n+1)); keys "$f" > /tmp/l.keys; comm -23 /tmp/en.keys /tmp/l.keys >> /tmp/missing.all; done
    echo "ref $(git -C "$repo" rev-parse --short "$ref"): $(wc -l < /tmp/en.keys) English keys, $n locales"
    echo "keys missing from every locale:"; sort /tmp/missing.all | uniq -c | awk -v n=$n '$1==n {print "  "$2}'
    echo "missing from zh.ts: $(keys zh.ts | comm -23 /tmp/en.keys - | wc -l)"

    Run it: bash missing-keys.sh

  3. opencodejr
    added
    status/repro-plausibleLikely from reading the code, not observed
    on Nov 17, 2026
  4. opencodejr
    marked Provider account removal dialog falls back to English in Danish #66764 as a duplicate of this issue on Nov 27, 2026
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/webWeb appplatform/macosmacOSstatus/repro-plausibleLikely from reading the code, not observedtype/bugSomething is brokenversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.