Skip to content

fix(desktop): the built-in browser dictionary is 91% untranslated, so Settings -> Browser is English in every language #66085

Backlog

Description

@xvcezrqpbxtpzblrt

Description

My desktop app language is Chinese (Simplified). On Settings -> Browser everything except the sidebar is English: "Browser", "Import from another browser", "Import...", "Extensions", "Add an extension", "Install from the Chrome Web Store, Edge Add-ons, or your other browsers", "Some extensions may not work here yet", "Open links in OpenCode", "Hold Shift and click a link to use your default browser", "Advanced", "Remote servers, site permissions, browsing data, cookie file". In the sidebar every entry is Chinese except "Browser" and "Pairing".

This is missing dictionary entries rather than a rendering bug. Measured on dev on 2026-11-24:

  • packages/gui-plugins/src/browser/i18n: the English table has 428 keys, zh.ts has 38, so 390 keys (91%) fall back to English. That directory has 63 locale files, and every one of them is missing the same 390 keys - I counted de, fr, ja, ru, es, ko, vi, th, tr, uk, ar and hi, each has 38-42 keys. So Settings -> Browser is English in every language, not only in Chinese.
  • The strings in that first bullet are exactly what my screen shows, and none of them exists in zh.ts: settings.title ("Browser", which is also the sidebar entry), settings.import.title, signins.action ("Import"), settings.extensions.title ("Extensions"), settings.extensions.add.title, settings.extensions.note, settings.links.title, settings.links.description, settings.advanced ("Advanced"), settings.advanced.summary. Grepping zh.ts for settings., signins., extensions or advanced returns nothing at all.
  • Four other plugin dictionaries have no locale files at all: packages/gui-plugins/src/btw/i18n, goal/i18n, sources/i18n and microsoft-office/i18n contain only en.ts. pairing/i18n is in the same state (24 keys, en.ts only), which is why the whole Pairing page is English for me; that page is already tracked in [BUG]: zh/zht locale dictionaries missing 93 keys present in en (pairing, provider connect, file viewer) #53858, so I am not asking for it again here.
  • For comparison, the rest is close to complete: packages/app/src/runtime/i18n has 1416 English keys against 1385 in zh (107 missing, tracked in [BUG]: zh/zht locale dictionaries missing 93 keys present in en (pairing, provider connect, file viewer) #53858), packages/ui/src/i18n 389 against 381 (8 missing), and the file, review, terminal, updater, context, details, ssh and wsl plugins are 0-22% missing. The 91% gap is specific to the built-in browser.

So the scope of this issue is the built-in browser dictionary only. #53858 covers the app dictionary and the Pairing page; it does not count gui-plugins/src/browser/i18n.

One thing worth checking: #61453 was closed with "Every locale, including Turkish, now has all of the English keys in the app, ui and GUI plugin dictionaries" (PR #64205). That does not hold for packages/gui-plugins/src/browser/i18n on dev today.

Plugins

Nothing installed. The built-in browser ships with the desktop app.

OpenCode version

opencode v2.4.1 (desktop app 2.4.1)

Steps to reproduce

  1. Set the app language to Chinese (Settings -> General -> Language).
  2. Open Settings and click Browser in the sidebar.
  3. The whole page body is English.

Expected: these strings follow the selected language, like the rest of Settings.
Actual: they fall back to English.

Screenshot

Not attached. The key counts above can be reproduced from the files listed.

Operating System

Windows 11 build 26300

Terminal

Desktop app (Electron)

Activity

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

    @opencodejr
    Contributor

    Not observed; this looks likely from reading the code.

    Thanks for the detailed counts. I couldn't run the desktop app here, so I haven't seen the page myself. I did confirm the cause by loading the dictionary files from the v2.4.1 tag and from the latest dev (adc958a); the numbers are the same on both:

    The script below prints these counts for any checkout. Related: #53858 (zh/zht gaps in the app dictionary and the pairing page).

    Reproduction script (count.ts)
    // Counts English keys missing from each locale of the built-in GUI plugin dictionaries.
    // Run from repo root: bun /workspace/repro/count.ts [repoPath]
    import { readdirSync, existsSync } from "fs"
    import { join } from "path"
    const repo = process.argv[2] ?? "/workspace/repo"
    const base = join(repo, "packages/gui-plugins/src")
    for (const plugin of ["browser", "pairing", "btw", "goal", "sources", "microsoft-office", "file", "terminal"]) {
      const dir = join(base, plugin, "i18n")
      if (!existsSync(dir)) continue
      const en = Object.keys((await import(join(dir, "en.ts"))).default)
      const locales = readdirSync(dir).filter((f) => f.endsWith(".ts") && f !== "en.ts")
      const out: string[] = []
      for (const f of locales.filter((f) => ["zh.ts", "de.ts", "ja.ts", "fr.ts"].includes(f))) {
        const keys = new Set(Object.keys((await import(join(dir, f))).default))
        out.push(`${f}: ${keys.size} keys, missing ${en.filter((k) => !keys.has(k)).length}`)
      }
      console.log(`${plugin}: en=${en.length}, locale files=${locales.length}; ${out.join("; ")}`)
    }
    const browserEn = (await import(join(base, "browser/i18n/en.ts"))).default
    const browserZh = (await import(join(base, "browser/i18n/zh.ts"))).default
    for (const k of ["settings.import.title", "settings.links.title", "settings.extensions.note"])
      console.log(`${k}: en=${JSON.stringify(browserEn[k])} zh=${JSON.stringify(browserZh[k])}`)

    Run it: bun count.ts

  3. added
    status/repro-plausible
    on Nov 24, 2026
  4. pqminh27 commented on Nov 25, 2026

    @pqminh27

    Hi, I’m adding Vietnamese translations for the Browser settings in #66085. I’m checking the wording and screenshots before opening a draft PR.

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/windowsstatus/repro-plausibletype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions