Skip to content

fix(vscode): translate Anaconda Desktop provider strings in all locales - #11776

Merged
markijbema merged 1 commit into
mainfrom
mark/anaconda-i18n-translations
Jun 29, 2026
Merged

fix(vscode): translate Anaconda Desktop provider strings in all locales#11776
markijbema merged 1 commit into
mainfrom
mark/anaconda-i18n-translations

Conversation

@markijbema

Copy link
Copy Markdown
Contributor

What changed

Each non-English webview locale now ships its own translated anacondaDesktopDict for the Anaconda Desktop provider, mirroring the construct in en.ts. Previously every other locale imported and spread the English anacondaDesktopDict from ./en, so all Anaconda Desktop strings (titles, statuses, state guidance, tool-support warning, actions, toasts) rendered in English regardless of the selected language.

Why

PR #11714 added the Anaconda Desktop provider but only translated three keys per locale (checkAgain, noServer_one, noServer_other) and left the remaining ~36 keys falling back to English via the shared import. This makes those strings actually localized.

How

  • Removed the import { anacondaDesktopDict } from "./en" from the 14 locales that only used it for the spread, and dropped it from the import (keeping dict as en) in the 5 locales that also use dict as en for their Keys type (de, ko, no, zh, zht).
  • Added a per-locale export const anacondaDesktopDict = { ... } as const with all 39 keys translated.
  • Reused the existing translated checkAgain / noServer_one / noServer_other strings verbatim.
  • Preserved Anaconda Desktop / Kilo product names and {{platform}} / {{count}} placeholders.

en.ts is unchanged.

Validation

  • bun test tests/unit/i18n-keys.test.ts passes (7/7).
  • bun run format clean.
  • Verified each locale has exactly 39 Anaconda keys, no duplicates, and the correct anacondaDesktopDict + ...anacondaDesktopDict construct.

@markijbema
markijbema marked this pull request as ready for review June 29, 2026 09:00
@kilo-code-bot

kilo-code-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (19 files)
  • .changeset/anaconda-desktop-translations.md
  • packages/kilo-vscode/webview-ui/src/i18n/ar.ts
  • packages/kilo-vscode/webview-ui/src/i18n/br.ts
  • packages/kilo-vscode/webview-ui/src/i18n/bs.ts
  • packages/kilo-vscode/webview-ui/src/i18n/da.ts
  • packages/kilo-vscode/webview-ui/src/i18n/de.ts
  • packages/kilo-vscode/webview-ui/src/i18n/es.ts
  • packages/kilo-vscode/webview-ui/src/i18n/fr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/it.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ja.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ko.ts
  • packages/kilo-vscode/webview-ui/src/i18n/nl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/no.ts
  • packages/kilo-vscode/webview-ui/src/i18n/pl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ru.ts
  • packages/kilo-vscode/webview-ui/src/i18n/th.ts
  • packages/kilo-vscode/webview-ui/src/i18n/tr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/uk.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zh.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zht.ts

Reviewed by gpt-5.4-20260305 · Input: 98.1K · Output: 11.6K · Cached: 623.9K

Review guidance: REVIEW.md from base branch main

@markijbema
markijbema merged commit 833531f into main Jun 29, 2026
20 of 21 checks passed
@markijbema
markijbema deleted the mark/anaconda-i18n-translations branch June 29, 2026 09:07
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…anslations

fix(vscode): translate Anaconda Desktop provider strings in all locales
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.

2 participants