Skip to content

feat(app): add global locale coverage - #40992

Merged
Hona merged 1 commit into
devfrom
global-locales
Aug 7, 2026
Merged

feat(app): add global locale coverage#40992
Hona merged 1 commit into
devfrom
global-locales

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add 34 complete locale packs across the app, shared UI, and desktop renderer: Amharic, Albanian, Armenian, Bengali, Bulgarian, Burmese, Catalan, Croatian, Czech, Dhivehi, Dzongkha, Estonian, Faroese, Georgian, Greek, Hungarian, Icelandic, Khmer, Lao, Latvian, Lithuanian, Macedonian, Malay, Mongolian, Nepali, Persian, Romanian, Serbian, Sinhala, Slovak, Slovenian, Tajik, Turkmen, and Uzbek
  • register native language names and real BCP 47 tags in the shared locale primitive, including script-aware detection through navigator.languages and Intl.Locale.maximize()
  • keep plural selection and accepted locale-specific variants driven by Intl.PluralRules, with no feature-level locale branches
  • extend the translation maintenance command to every registered locale and every desktop surface
  • strengthen localization guidance and the translation-agent prompt to prefer established developer-community terminology over literal dictionary translations

Translation methodology

Translations were reviewed against Unicode CLDR plural/locale data and maintained developer-product corpora. Firefox, KDE, and VS Code localizations were compared where target-language coverage exists, with Microsoft terminology and national language authorities used as supporting references.

The review normalized recurring product concepts such as session, prompt, agent, model, provider, fork, shell, terminal, workspace, worktree, context, permission, tool, and server. For sparse-resource locales, recognizable developer borrowings such as Git worktree, Shell, or a conventional transliteration were preferred over invented physical calques.

These are complete best-effort translations. Native developer review remains especially valuable for Dhivehi, Dzongkha, Faroese, Turkmen, Mongolian, Tajik, and Amharic terminology.

Verification

  • bun test src/i18n in packages/app — 13 passed, 1,434 assertions
  • bun typecheck in packages/app
  • bun typecheck in packages/ui
  • bun typecheck in packages/desktop
  • bun test translate-app.test.ts in script — 13 passed
  • bun run translate:app -- all --check — all 61 translated locales have zero missing keys, invalid extras, or placeholder mismatches across app/UI/desktop
  • scoped oxlint — zero errors
  • git diff --check

Requested by: @Hona (Hona via Slack)

@Hona
Hona enabled auto-merge (squash) August 7, 2026 04:34
@Hona
Hona merged commit 741244b into dev Aug 7, 2026
13 of 14 checks passed
@Hona
Hona deleted the global-locales branch August 7, 2026 05:41
HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 7, 2026
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
charlesverge pushed a commit to charlesverge/opencode that referenced this pull request Aug 11, 2026
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
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.

1 participant