Skip to content

Conversation

@jwaterwater
Copy link
Contributor

feat(app): add i18n internationalization support

  • Add @solid-primitives/i18n dependency
  • Create i18n infrastructure (context, hooks, locale files)
  • Support 5 languages: English, 简体中文, 日本語, Français, Español
  • Auto-detect browser language
  • Add language switcher dialog (sidebar settings gear icon)
  • Translate home page
  • Translate sidebar layout (including command palette)
  • Translate session-related pages (session-header, session-new-view)

jwaterwater and others added 2 commits January 7, 2026 09:11
Fixes error when directory paths contain non-ASCII characters (e.g., Chinese) by using percent-encoding for the x-opencode-directory header, as HTTP headers must be ISO-8859-1 compatible.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found a related PR:

Potential Duplicate:

This PR appears to be addressing the same feature (i18n internationalization support). PR #6776 seems to be an earlier implementation, and PR #7290 may be an updated or expanded version with additional language support (including Korean translations in #6776 context).

Note: PR #1581 (feat: implement comprehensive Chinese translation support) is less likely to be a direct duplicate as it appears to be an older, more limited implementation.

@jwaterwater
Copy link
Contributor Author

I believe the OpenCode DeskTop should be aimed at non-programmers. I am also preparing to use OpenCode to develop products for non-programmers, so language support seems essential.

@adamdotdevin
Copy link
Contributor

adamdotdevin commented Jan 8, 2026

@jwaterwater please add some screenshots

@jwaterwater
Copy link
Contributor Author

Sure

ScreenShot_2026-01-09_072631_191 ScreenShot_2026-01-09_072641_034 ScreenShot_2026-01-09_072702_570 ScreenShot_2026-01-09_072801_003 ScreenShot_2026-01-09_072935_091

@adamdotdevin
Copy link
Contributor

Hey, @jwaterwater, really sorry for the delay, but I would like to merge this. Do you mind doing a rebase and I'll get it merged?

@Eric-Guo
Copy link
Contributor

@adamdotdevin May consider #9190? which running by GPT 5.2 high and human initial seed.

thdxr and others added 5 commits January 18, 2026 12:42
- Add @solid-primitives/i18n dependency
- Create i18n infrastructure (context, hooks, locale files)
- Support 5 languages: English, 简体中文, 日本語, Français, Español
- Auto-detect browser language
- Add language switcher dialog (sidebar settings gear icon)
- Translate home page
- Translate sidebar layout (including command palette)
- Translate session-related pages (session-header, session-new-view)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@Eric-Guo
Copy link
Contributor

Eric-Guo commented Jan 18, 2026

#9190 translation item count is 358 vs 107 (this PR), I also not add any UI button to enable translation, need Cmd+Shift+l to switch the language.

total change +1,279 −338 vs +5,048 −2,750 (this PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants