Skip to content

refactor(i18n): reactive translate in plugins and skills - #39400

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/i18n-reactive-translate-plugins-skills
Nov 8, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/i18n-reactive-translate-plugins-skills

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This is a batch of the reactive-translate rollout from #39353. It applies pnpm i18n:reactive-translate --helpers to plugins and skills:

  • components/plugins
  • components/skills

Codemod result: Rewrote 609 call(s), threaded 88 helper(s) into 99 render call site(s), in 130 file(s); left 1 for manual review. Total diff: 131 files, including helper files outside the directory that gain a defaulted t / intlLocale parameter.

This is a mechanical rewrite and behavior is unchanged with React Compiler off:

  • t from useTranslate() delegates to translate(), so every string is identical. Only its identity changes, and only on a language or resource change, when the tree already re-renders.
  • A threaded helper defaults its new parameter (t: Translate = translate), so callers that don't pass it are unchanged.
  • useMemo deps gain t only where they already include a useUiLanguageRevision() value.

Left for manual work because the rewrite would push these files over the max-lines budget. They stay untouched until someone splits them:

  • src/renderer/src/components/automations/use-external-automation-actions.ts

Skipped by the codemod (1 call sites, still counted by the ratchet):

  • components/plugins/list/PluginManager.tsx:142 components/plugins/list/plugin-list-entries.ts#buildPluginListEntries: useMemo without a language dependency (adding one changes when it recomputes)

The render-path-translate ratchet baseline drops to 4908.

Testing

  • pnpm tc
  • ORCA_CODE_QUALITY_BASE=origin/main pnpm check:changed (lint, ratchets, related unit tests)
Files Added Deleted Net
Test 0 0 0 0
Prod 131 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1588 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1780 $\color{#cf222e}{\Huge{\mathbf{−}}}$​192

@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-browser-feature-wall branch from 4a01dd1 to 46ba9d4 Compare November 7, 2026 10:15
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-plugins-skills branch from fe3dbf3 to 359fc64 Compare November 7, 2026 10:17
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-browser-feature-wall branch from 46ba9d4 to deb1ba6 Compare November 7, 2026 10:40
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-plugins-skills branch from 359fc64 to 8408bf8 Compare November 7, 2026 10:40
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-browser-feature-wall branch from deb1ba6 to de43267 Compare November 7, 2026 11:25
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-plugins-skills branch from 8408bf8 to 1114ddc Compare November 7, 2026 11:27
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-browser-feature-wall branch from de43267 to d2c1691 Compare November 7, 2026 21:03
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-plugins-skills branch from 1114ddc to 81ec8b5 Compare November 7, 2026 21:04
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-browser-feature-wall branch from d2c1691 to 49c33d1 Compare November 8, 2026 02:34
@OrcaWin
OrcaWin changed the base branch from OrcaWin/i18n-reactive-translate-browser-feature-wall to main November 8, 2026 02:54
…ugins and skills

Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.
@OrcaWin
OrcaWin force-pushed the OrcaWin/i18n-reactive-translate-plugins-skills branch from 81ec8b5 to fbcb7f4 Compare November 8, 2026 02:58
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: de880ce8-8272-4f9c-b7a1-9f9af8472c4e
Commits

Reviewing files that changed from the base of the PR and between 6757dd6 and fbcb7f4.

Files selected for processing: 131

  • config/render-path-translate-baseline.txt
  • src/renderer/src/components/plugins/catalog/PluginCardAction.tsx
  • src/renderer/src/components/plugins/catalog/PluginCatalogGroups.tsx
  • src/renderer/src/components/plugins/catalog/PluginInUseAction.tsx
  • src/renderer/src/components/plugins/declarative/PluginDeclarativeContent.tsx
  • src/renderer/src/components/plugins/declarative/PluginDeclarativeDisplay.tsx
  • src/renderer/src/components/plugins/declarative/PluginDeclarativeRelativeTime.tsx
  • src/renderer/src/components/plugins/declarative/PluginDeclarativeTable.tsx
  • src/renderer/src/components/plugins/declarative/PluginDeclarativeTree.tsx
  • src/renderer/src/components/plugins/dialogs/PluginCatalogLinkDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginDevelopmentDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginInstallDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginInstallTrustDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginMarketplaceSourceDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginRemoveDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginRollbackDialog.tsx
  • src/renderer/src/components/plugins/dialogs/PluginUpdateAllDialog.tsx
  • src/renderer/src/components/plugins/list/PluginAddMenu.tsx
  • src/renderer/src/components/plugins/list/PluginCard.tsx
  • src/renderer/src/components/plugins/list/PluginCatalogLayout.tsx
  • src/renderer/src/components/plugins/list/PluginCategoryBadge.tsx
  • src/renderer/src/components/plugins/list/PluginCategoryChips.tsx
  • src/renderer/src/components/plugins/list/PluginChips.tsx
  • src/renderer/src/components/plugins/list/PluginFilterPopover.tsx
  • src/renderer/src/components/plugins/list/PluginListEmptyStates.tsx
  • src/renderer/src/components/plugins/list/PluginListGroup.tsx
  • src/renderer/src/components/plugins/list/PluginListToolbar.tsx
  • src/renderer/src/components/plugins/list/PluginManager.tsx
  • src/renderer/src/components/plugins/list/PluginManagerRows.tsx
  • src/renderer/src/components/plugins/list/PluginRowMenu.tsx
  • src/renderer/src/components/plugins/list/PluginSettingsMenu.tsx
  • src/renderer/src/components/plugins/list/PluginSettingsOverview.tsx
  • src/renderer/src/components/plugins/list/PluginsAlphaNotice.tsx
  • src/renderer/src/components/plugins/list/PluginsSectionDescription.tsx
  • src/renderer/src/components/plugins/list/PluginsSettingsSection.tsx
  • src/renderer/src/components/plugins/list/plugin-category-label.ts
  • src/renderer/src/components/plugins/page/PluginAddsSection.tsx
  • src/renderer/src/components/plugins/page/PluginAuthor.tsx
  • src/renderer/src/components/plugins/page/PluginCommandReplacementRow.tsx
  • src/renderer/src/components/plugins/page/PluginContributionActionCommand.tsx
  • src/renderer/src/components/plugins/page/PluginContributionActionEvents.tsx
  • src/renderer/src/components/plugins/page/PluginContributionActionLanguage.tsx
  • src/renderer/src/components/plugins/page/PluginContributionActionNewFile.tsx
  • src/renderer/src/components/plugins/page/PluginContributionActionPanel.tsx
  • src/renderer/src/components/plugins/page/PluginContributionActionSyntax.tsx
  • src/renderer/src/components/plugins/page/PluginDetailInfo.tsx
  • src/renderer/src/components/plugins/page/PluginDetailPage.tsx
  • src/renderer/src/components/plugins/page/PluginDetailSections.tsx
  • src/renderer/src/components/plugins/page/PluginPageAction.tsx
  • src/renderer/src/components/plugins/page/PluginPageHero.tsx
  • src/renderer/src/components/plugins/page/PluginSettingsSection.tsx
  • src/renderer/src/components/plugins/page/PluginThemeUseNow.tsx
  • src/renderer/src/components/plugins/page/plugin-contribution-action-availability.ts
  • src/renderer/src/components/plugins/presentation/plugin-capability-presentation.ts
  • src/renderer/src/components/plugins/presentation/plugin-consent-copy.ts
  • src/renderer/src/components/plugins/presentation/plugin-contribution-row-labels.ts
  • src/renderer/src/components/plugins/presentation/plugin-contributions.ts
  • src/renderer/src/components/plugins/presentation/plugin-custom-editor-takeover.ts
  • src/renderer/src/components/plugins/presentation/plugin-error-presentation.ts
  • src/renderer/src/components/plugins/presentation/plugin-git-install-presentation.ts
  • src/renderer/src/components/plugins/presentation/plugin-install-count.ts
  • src/renderer/src/components/plugins/presentation/plugin-official-label.ts
  • src/renderer/src/components/plugins/presentation/plugin-release-date.ts
  • src/renderer/src/components/plugins/presentation/plugin-status-presentation.ts
  • src/renderer/src/components/plugins/review/PluginConsentProvenance.tsx
  • src/renderer/src/components/plugins/review/PluginInstallConsent.tsx
  • src/renderer/src/components/plugins/review/PluginNotOfficialWarning.tsx
  • src/renderer/src/components/plugins/review/PluginUpdateCandidate.tsx
  • src/renderer/src/components/plugins/review/PluginUpdateReview.tsx
  • src/renderer/src/components/plugins/review/PluginVmRecipeConsentPreview.tsx
  • src/renderer/src/components/plugins/state/use-plugin-catalog.ts
  • src/renderer/src/components/plugins/state/use-plugin-logs.ts
  • src/renderer/src/components/plugins/state/use-plugin-marketplace-lifecycle.ts
  • src/renderer/src/components/settings/plugins/plugins-search.ts
  • src/renderer/src/components/skills/SkillBundleInstallFlow.tsx
  • src/renderer/src/components/skills/SkillBundleInstallOutcome.tsx
  • src/renderer/src/components/skills/SkillBundleInstallReview.tsx
  • src/renderer/src/components/skills/SkillDeleteResultBand.tsx
  • src/renderer/src/components/skills/SkillDescriptionDisclosure.tsx
  • src/renderer/src/components/skills/SkillDetailDialog.tsx
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx
  • src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
  • src/renderer/src/components/skills/SkillInstallAgentPicker.tsx
  • src/renderer/src/components/skills/SkillInstallDialog.tsx
  • src/renderer/src/components/skills/SkillInstallDialogFooter.tsx
  • src/renderer/src/components/skills/SkillInstallManagementDialog.tsx
  • src/renderer/src/components/skills/SkillInstallManagementDialogContent.tsx
  • src/renderer/src/components/skills/SkillInstallReviewContent.tsx
  • src/renderer/src/components/skills/SkillInstallRiskNotice.tsx
  • src/renderer/src/components/skills/SkillInstallTargetFields.tsx
  • src/renderer/src/components/skills/SkillInstallWorkspaceCombobox.tsx
  • src/renderer/src/components/skills/SkillManagedInstallRow.tsx
  • src/renderer/src/components/skills/SkillPackageChecklist.tsx
  • src/renderer/src/components/skills/SkillRow.tsx
  • src/renderer/src/components/skills/SkillShareDialog.tsx
  • src/renderer/src/components/skills/SkillSharePackageSummary.tsx
  • src/renderer/src/components/skills/SkillShareReleaseNotesField.tsx
  • src/renderer/src/components/skills/SkillShareReviewContent.tsx
  • src/renderer/src/components/skills/SkillSharedLinkRow.tsx
  • src/renderer/src/components/skills/SkillSharedLinksView.tsx
  • src/renderer/src/components/skills/SkillUpdateRow.tsx
  • src/renderer/src/components/skills/SkillUpdateRows.tsx
  • src/renderer/src/components/skills/SkillsFilterToolbar.tsx
  • src/renderer/src/components/skills/SkillsList.tsx
  • src/renderer/src/components/skills/SkillsPage.tsx
  • src/renderer/src/components/skills/SkillsPageHeader.tsx
  • src/renderer/src/components/skills/SkillsSelectionHeader.tsx
  • src/renderer/src/components/skills/SkillsSourcesPopover.tsx
  • src/renderer/src/components/skills/examples/SkillUsageExampleDialog.tsx
  • src/renderer/src/components/skills/setup/AgentSkillSetupFailureNotice.tsx
  • src/renderer/src/components/skills/setup/AgentSkillSetupPanel.tsx
  • src/renderer/src/components/skills/setup/BundledSkillInstallStatus.tsx
  • src/renderer/src/components/skills/setup/WslAgentSkillSetupPanel.tsx
  • src/renderer/src/components/skills/setup/WslLinearAgentSkillInstallCta.tsx
  • src/renderer/src/components/skills/setup/bundled-skill-setup-copy.ts
  • src/renderer/src/components/skills/setup/bundled-skill-setup-result-copy.ts
  • src/renderer/src/components/skills/setup/linear-agent-skill-install-cta.tsx
  • src/renderer/src/components/skills/skill-delete-copy.ts
  • src/renderer/src/components/skills/skill-delete-selection.ts
  • src/renderer/src/components/skills/skill-display-labels.ts
  • src/renderer/src/components/skills/skill-freshness-summary-headline.tsx
  • src/renderer/src/components/skills/skill-install-management-copy.ts
  • src/renderer/src/components/skills/skill-install-progress-state.ts
  • src/renderer/src/components/skills/skill-install-result-label.ts
  • src/renderer/src/components/skills/skill-managed-install-labels.ts
  • src/renderer/src/components/skills/skill-package-checklist-items.ts
  • src/renderer/src/components/skills/skill-plan-op-copy.ts
  • src/renderer/src/components/skills/skill-share-preview-summary.ts
  • src/renderer/src/components/skills/skill-share-selection.ts
  • src/renderer/src/components/skills/skills-page-states.tsx
  • src/renderer/src/components/skills/use-skill-discovery-host-label.ts
  • 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

@OrcaWin
OrcaWin merged commit ccb42eb into main Nov 8, 2026
84 of 86 checks passed
@OrcaWin
OrcaWin deleted the OrcaWin/i18n-reactive-translate-plugins-skills branch November 8, 2026 03:17
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