Skip to content

[FEATURE]: add locale-aware CLI and TUI strings to packages/opencode #21084

@gqcdm

Description

@gqcdm

Describe the enhancement you want to request

Add a focused multilingual MVP for packages/opencode so the main CLI/TUI can render locale-aware built-in strings.

Scope for the first slice:

  • add a small config.locale setting plus environment fallback
  • add lightweight en / zh dictionaries for built-in OpenCode strings
  • localize selected high-frequency surfaces in the CLI and TUI such as serve, web, export, session, help/status dialogs, select defaults, and home placeholders
  • keep the PR small and avoid introducing a heavy i18n framework

Benefits:

  • makes the core opencode experience usable in more languages without waiting for a full translation system
  • reuses the repo's existing lightweight i18n direction instead of adding a large dependency surface
  • provides a reviewable first step that can be expanded incrementally later

Related context:

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions