anomalyco / anomalyco/opencode

[FEATURE]: Add TUI/Chamber interface localization (i18n) support

Open
#39,846 1 comment 1 reaction 1 assignee View on GitHub

@kommander is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

text

Description

Currently, the OpenCode TUI/Chamber interface is entirely in English. There is no way to switch the UI language to other languages (e.g., Russian, Chinese, German, etc.). This makes the tool less accessible for non-English-speaking developers.

Proposed Feature

Add a localization (i18n) system to the TUI/Chamber interface that allows users to switch the UI language. The feature should include:

  1. Language configuration option in both tui.json and opencode.json:
    {
      "locale": "ru-RU"
    }
    

Localized UI strings for all TUI elements:

Command names and descriptions (e.g., /undo, /help, /themes)
Status bar messages (e.g., "Build mode", "Plan mode")
Dialog/confirmation messages
Permission prompts (e.g., "Allow editing?")
Error and warning messages
Help dialog content
Session list, model list, and other list views
Translation files — a set of locale JSON files (e.g., locales/ru-RU.json, locales/zh-CN.json) that can be contributed to the repository.

Language switcher — either a command (/language) or a keyboard shortcut to switch between installed languages.

Fallback to English — if a string is not translated for the selected locale, fall back to the default English text.

Why This Matters
Non-English-speaking developers would benefit from a native-language interface
Makes OpenCode accessible to a wider global audience
Follows the pattern of many modern CLIs (e.g., npm, nvm, dotnet CLI) that support localization
The OpenCode documentation site already has a language selector with Russian and Chinese support — the TUI should follow suit
Related
The documentation site at opencode.ai already has a language selector (English, Русский, 中文, etc.)
This is a pure TUI/Chamber feature request — not about agent responses or instructions, but about the UI chrome itself
Suggested Implementation Approach
Create a locales/ directory with en-US.json as the default locale
Add a locale field to tui.json schema
Replace all hardcoded UI strings with t() function calls that look up the current locale
Accept community contributions of additional locale files via PRs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.