Skip to content

Translate the new plugin list, filter and access strings in every language - #36215

Merged
nwparker merged 1 commit into
mainfrom
nwparker/plugins-new-strings-i18n
Oct 30, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/plugins-new-strings-i18n

Conversation

@nwparker

@nwparker nwparker commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1049 $\color{#cf222e}{\Huge{\mathbf{−}}}$​70 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​979

ELI5

The new Plugins settings screen (category chips, the All / Installed / Not installed / Updates tabs, the "what it can access" labels, the trusted-code warning) showed English to people using Orca in another language. This adds the translations.

What Changed

  • Before: In every non-English language, strings such as "Remote/VMs", "Editors", "Not installed", "Installed · not from a catalog", "Content only", "Runs plugin code", "Full access" and "Runs the publisher's code inside Orca to draw its view…" were shown in English. In German, Portuguese, Russian, Turkish and Traditional Chinese, most of the plugin list and plugin page was English too (Themes, Languages, Icons, Updates, Try it, Version, License…). In Spanish, Korean and Simplified Chinese the All / Installed tabs had English text stored as their "translation".
  • After: All of these show in the user's language across all 10 supported languages (de, es, fr, ja, ko, pt-BR, ru, tr, zh-Hans, zh-Hant). That's 769 entries over 135 distinct strings. "Orca" and other product names stay as they are, and chip labels stay short ("Remote/VM", "リモート/VM", "远程/虚拟机", "Удалённые/ВМ").
  • Games chip: the label came from the category's internal name, so it could never be translated. pluginCategoryLabel now gives three known catalog categories that have no filter group of their own (games, agents, integrations) translated labels. Unknown categories still fall back to their name converted into words.

The new strings came from #36100 (list, chips, tabs, access copy) and #35846 (Try it). #36132 added no user-facing strings. None of these PRs added entries to config/localization-coverage-allowlist.json, so there was nothing to remove.

Why

Translations live in the per-locale catalogs, and a missing key falls back to English at runtime, so the only fix is to fill in the catalogs. Wording reuses each locale's existing plugin terms (for example 外掛 in zh-Hant, "Katalog"/"Plugin" in German, and "Agent" in Japanese, matching that locale's current policy), so the new text reads the same as the rest of the pane. I translated the older untranslated strings on these same screens as well. Without them, German or Russian users would still have seen an English list with only a few translated chips.

Linked Issue

Fixes # — N/A (maintainer follow-up to #36100 / #35846)

Visual Proof

N/A. Only catalog text changes, plus the label for three category chips. Layout and behavior are unchanged.

Testing

  • pnpm run verify:localization-catalogs, verify:localization-extraction, verify:localization-coverage, verify:mobile-localization: pass

  • pnpm tc: pass

  • pnpm test for src/renderer/src/components/plugins/list, src/renderer/src/i18n, and the locale-policy / localization script tests: pass. Added plugin-category-label.test.ts.

  • pnpm run check:code-quality:changed: pass

  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The security wording (the trusted-code warning and the access labels) was translated literally, with nothing softened. The plugin language-pack exemption list is untouched, so plugins still can't override those strings. No wire, SSH or platform impact.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The plugin category label helper now provides translated labels for games, agents, and integrations while retaining the existing fallback behavior. Tests cover category labels and an unknown hyphenated category. Locale files add or update plugin-related text for file creation, consent, catalog filtering, installation, management, and plugin status.

Priority: Normal

Merge Risk: Low · up to 07726

One plugin access label remains in English for German, Russian, Turkish, and Traditional Chinese users. This is a bounded localization gap that can be followed up after merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "Translate the new plugin list, filter and access strings in every language" matches the main change. The PR adds translations for plugin list, filter, and access-label strings across the 10…
Description check Passed The description follows the repository template and covers the main sections. It has an ELI5, a detailed What Changed section with before and after behavior, a Why section, a Linked Issue entry that u…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Translate the new plugin list, filter and access strings in every language" matches the main change. The PR adds translations for plugin list, filter, and access-label strings across the 10 supported locales, and it also adds labels for the Games, Agents, and Integrations category chips. The title is specific and omits only secondary details such as the trusted-code warning and the category label fallback.

Full details: Description check

Explanation

The description follows the repository template and covers the main sections. It has an ELI5, a detailed What Changed section with before and after behavior, a Why section, a Linked Issue entry that uses N/A with a maintainer follow-up note, a Visual Proof entry that uses N/A with a reason, and a Testing section with commands and an automated-test checkbox. The Linked Issue entry does not link an actual issue. The template requires one for outside contributors, and the author appears to be a maintainer. The AI Disclosure and Review sections are empty, and the Agent skill upstream boundary checkbox is ticked. The author should confirm that the Linked Issue rule does not apply to this PR. The author should also confirm that the empty AI Disclosure section is acceptable. Both gaps are minor. The description is mostly complete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files. (10 skipped: 10 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 42fad395-705a-4b3c-a0c5-7d4e2b1f6b0e
Commits

Reviewing files that changed from the base of the PR and between 93ca82a and 383ea30.

Files selected for processing: 13
  • src/renderer/src/components/plugins/list/plugin-category-label.test.ts
  • src/renderer/src/components/plugins/list/plugin-category-label.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

"accessLoading": "Plugin wird gelesen…",
"accessFailed": "Zugriff konnte nicht gelesen werden",
"retry": "Erneut versuchen",
"customEditor": "Editor"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

rg -n -C 5 'noAccessReach|Nothing outside its own files' src/renderer/src -g '*.{ts,tsx}'

Repository: stablyai/orca

Length of output: 1318


Script executed:

set -o pipefail
printf '%s\n' '--- key occurrences in locale catalogs ---'
rg -n -F --glob '*.json' -- 'noAccessReach' src/renderer/src/i18n/locales || test "$?" -eq 1
printf '%s\n' '--- locale files ---'
find src/renderer/src/i18n/locales -maxdepth 1 -type f -printf '%f\n' | sort
printf '%s\n' '--- translate declarations and locale fallback references ---'
rg -n -F --glob '*.{ts,tsx}' -e 'function translate' -e 'const translate' -e 'export.*translate' -e 'fallbackLng' -e 'defaultLocale' -e 'supportedLocales' src/renderer/src
printf '%s\n' '--- relevant locale implementation files ---'
rg --files src/renderer/src/i18n | sort

Repository: stablyai/orca

Length of output: 5303


Script executed:

set -o pipefail
printf '%s\n' '--- key occurrences in locale catalogs ---'
rg -n -F --glob '*.json' -- 'noAccessReach' src/renderer/src/i18n/locales || test "$?" -eq 1
printf '%s\n' '--- locale files ---'
find src/renderer/src/i18n/locales -maxdepth 1 -type f -printf '%f\n' | sort
printf '%s\n' '--- translation implementation references ---'
rg -n -F --glob '*.{ts,tsx}' -e 'function translate' -e 'const translate' -e 'export.*translate' -e 'fallbackLng' -e 'defaultLocale' -e 'supportedLocales' src/renderer/src || test "$?" -eq 1
printf '%s\n' '--- i18n files ---'
rg --files src/renderer/src/i18n | sort

Repository: stablyai/orca

Length of output: 5261


Script executed:

set -o pipefail
printf '%s\n' '--- translate implementation ---'
sed -n '1,145p' src/renderer/src/i18n/i18n.ts
printf '%s\n' '--- supported languages ---'
sed -n '1,220p' src/renderer/src/i18n/supported-languages.ts
printf '%s\n' '--- catalog loading and fallback references ---'
rg -n -C 4 -F --glob '*.{ts,tsx}' -e 'locales/' -e 'en.json' -e 'fallback' -e 'translate(' src/renderer/src/i18n/I18nProvider.tsx src/renderer/src/i18n/localized-catalog.ts src/renderer/src/i18n/language-readiness.ts

Repository: stablyai/orca

Length of output: 9914


Script executed:

set -o pipefail
rg -n -F --glob '*.{ts,tsx}' -e 'function createOrcaI18n' -e 'const createOrcaI18n' -e 'export function createOrcaI18n' -e 'translate(key' src/shared src/renderer/src
printf '%s\n' '--- candidate implementation files ---'
rg --files src/shared | rg 'i18n|translation|locale'

Repository: stablyai/orca

Length of output: 1818


Script executed:

sed -n '1,240p' src/shared/orca-i18n-instance.ts

Repository: stablyai/orca

Length of output: 4280


Add noAccessReach translations to the four missing locale catalogs.

When ownFilesOnly is true, PluginDetailSections renders this label. German, Russian, Turkish, and Traditional Chinese lack the key, so these locales render the English fallback instead of a translated label.

Source: Learnings

…gs in every locale

Covers strings added by #36100 and #35846 (category chips, install-state tabs,
access labels, the trusted-code warning, Try it) plus the plugin-pane strings
German, Portuguese, Russian, Turkish and Traditional Chinese never received.
Games, Agents and Integrations chips now read from the catalog instead of the slug.
@nwparker
nwparker force-pushed the nwparker/plugins-new-strings-i18n branch from 383ea30 to 07726bd Compare October 30, 2026 04:05
@nwparker
nwparker merged commit e25e025 into main Oct 30, 2026
40 of 42 checks passed
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.

1 participant