Skip to content

Conversation

@markijbema
Copy link
Contributor

Summary

Replaces hardcoded English strings in the webview UI with language.t() calls where
matching translation keys already exist in webview-ui/src/i18n/en.ts.

Changes

Strings replaced (5 files)

File String Key
TaskHeader.tsx "New session" command.session.new
TaskHeader.tsx "Compact session" (tooltip + aria-label) command.session.compact
ModelSelector.tsx "Select model" dialog.model.select.title
ModelSelector.tsx "Search models..." dialog.model.search.placeholder
ModelSelector.tsx "No models found" dialog.model.empty
ModelSelector.tsx "free" tag model.tag.free
DeviceAuthCard.tsx "Cancel" common.cancel
PermissionDialog.tsx "Permission Required" notification.permission.title
Settings.tsx "Providers" (tab + heading) settings.providers.title

Missing translations documented

Added docs/MISSING_TRANSLATIONS.md cataloguing ~90 hardcoded strings across 12 component
files that have no existing translation key. Each entry includes the file, line number,
hardcoded text, and a suggested key name.

Next steps

  • Add the suggested keys to en.ts and all locale files
  • Replace the remaining hardcoded strings with language.t() calls
  • Remove entries from MISSING_TRANSLATIONS.md as they're addressed

Replace hardcoded English strings that have matching translation keys
in webview-ui/src/i18n/en.ts with language.t() calls:

- TaskHeader: 'New session', 'Compact session' tooltip/aria-label
- ModelSelector: 'Select model', 'Search models', 'No model results', 'Free' tag
- DeviceAuthCard: 'Cancel' button
- PermissionDialog: 'Permission Required' dialog title
- Settings: 'Providers' tab trigger and heading
Catalog all hardcoded English strings in webview-ui/src/ .tsx files
that have no matching translation key in en.ts. Includes suggested
key names for each string across 12 component files.
Base automatically changed from mark/kilo-ui-phase4-polish to dev February 11, 2026 17:23
@markijbema markijbema marked this pull request as ready for review February 11, 2026 17:25
@markijbema markijbema enabled auto-merge February 11, 2026 17:26
@markijbema markijbema merged commit 5e57379 into dev Feb 11, 2026
7 checks passed
@markijbema markijbema deleted the mark/i18n-hardcoded-strings branch February 11, 2026 17:30
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.

2 participants