Skip to content

Feature Request: Add i18n / Chinese (Simplified) UI Language Support #32514

Closed as not planned

Description

@di1142

Summary
Add internationalization (i18n) support to OpenCode's TUI and CLI interface, starting with Simplified Chinese (zh-CN) as the first supported locale.
Motivation
Many developers in China prefer working in a Chinese-language environment. Currently, all OpenCode interface text (prompts, error messages, status indicators, help text, etc.) is hardcoded in English, which creates a barrier for Chinese-speaking users.
Proposed Solution

  1. Extract all user-facing strings into a locale file system (e.g., JSON-based translation files)
  2. Add a locale config option in opencode.json / tui.json (e.g., "locale": "zh-CN")
  3. Support LANG/LC_ALL environment variable detection as fallback
  4. Provide a complete Simplified Chinese translation as the first locale
    Alternatives Considered
  • Using AGENTS.md to instruct the AI to reply in Chinese (works for AI responses, but not for the tool's own UI text)
  • Environment variable OPENCODE_LOCALE (simpler but less flexible than config file approach)
    Additional Context
    OpenCode's documentation website already supports Simplified Chinese (简体中文) in its language selector, which shows the project's awareness of Chinese-speaking users. Extending this support to the CLI/TUI interface would be a natural next step.

Activity

  1. github-actions commented on Jun 16, 2026

    @github-actions
    Contributor

    This issue does not fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: for feature requests (e.g. [FEATURE]: Add i18n / Chinese (Simplified) UI Language Support)
    • The issue does not use the Feature Request template, which requires a verification checkbox confirming you have searched for existing issues and read the contributing guidelines

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Jun 16, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions