You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Add i18n / Chinese (Simplified) UI Language Support #32514
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
Extract all user-facing strings into a locale file system (e.g., JSON-based translation files)
Add a locale config option in opencode.json / tui.json (e.g., "locale": "zh-CN")
Support LANG/LC_ALL environment variable detection as fallback
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.
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:
Activity
github-actions commentedon Jun 16, 2026
This issue does not fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:for feature requests (e.g.[FEATURE]: Add i18n / Chinese (Simplified) UI Language Support)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.
github-actions commentedon Jun 16, 2026
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.