Skip to content

feat(tui): add Chinese locale support - #40297

Closed
RubenPari wants to merge 2 commits into
anomalyco:devfrom
RubenPari:tui-chinese
Closed

RubenPari wants to merge 2 commits into
anomalyco:devfrom
RubenPari:tui-chinese

Conversation

@RubenPari

Copy link
Copy Markdown

Summary

  • add locale support to tui.json for English and Simplified Chinese
  • resolve unset locales from LC_ALL, LC_MESSAGES, and LANG
  • provide Chinese translations for TUI startup, home, navigation, confirmation, and command-palette surfaces
  • document the setting and add locale/config regression coverage

Fixes #40270

Testing

  • bun test (from packages/tui)
  • bun typecheck (from packages/tui)
  • bun test test/config/tui.test.ts (from packages/opencode)
  • bun typecheck (from packages/opencode)

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

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

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

Providers that enforce a one-minute limit window can return HTTP 400
with a JSON body whose `detail` says "rate limit exceeded". OpenCode
previously treated all 400s as terminal. When `retry400RateLimit: true`
is set under `provider.<id>.options`, matching 400 responses now enter
the existing retry flow. Generic 400s and the default (flag absent/false)
remain non-retryable.

Fixes #40241

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This pull request 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 pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 3, 2026
@github-actions github-actions Bot closed this Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support Chinese (zh-CN) locale

1 participant