Skip to content

Internationalization

CodeBuddy ships with 7 language packs covering the chat UI, command names, setting descriptions, notifications, button labels.

CodeLanguageStatus
enEnglishDefault
esSpanishFull
frFrenchFull
deGermanFull
zh-cnChinese (Simplified)Full
jaJapaneseFull
yoYorubaFull

Via UI: CoWorker Settings panel → select language. CodeBuddy will prompt to also change the editor’s display language for full coverage of right-click menus + command palette.

Via settings:

{ "codebuddy.language": "ja" }

Takes effect immediately — translation bundle loads at runtime, no editor restart.

Two-tier system:

~75 strings per language:

  • Error messages (“API key not configured”)
  • Notifications + progress messages
  • Button labels (Yes / No / Cancel / Refresh)
  • Codebase analysis + vector DB messages
  • News notifications (“Morning tech news arrived! ☕”)

Uses @vscode/l10n API with l10n.t("string key"). Bundles at l10n/bundle.l10n.{lang}.json.

~46 keys per language:

  • Extension title + description
  • All command display names (~30+ commands)
  • All setting descriptions
  • View + panel names

Uses %key% placeholders in package.json, resolved from package.nls.{lang}.json.

  1. Copy l10n/bundle.l10n.en.jsonl10n/bundle.l10n.{code}.json.
  2. Copy package.nls.en.jsonpackage.nls.{code}.json.
  3. Translate values; keep keys unchanged.
  4. Add the code to codebuddy.language enum in package.json.

PR flow: Contributing.