Skip to content

Make CLI reveal labels translatable - #21079

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/https-linear.app-stably-issue-STA-7172-bug-settings-cli-show-in-finder-explorer-file-manager-label-is
Sep 16, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/https-linear.app-stably-issue-STA-7172-bug-settings-cli-show-in-finder-explorer-file-manager-label-is

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​37 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28

Problem

Platform-specific labels for revealing CLI installation location ("Show in Finder", "Show in Explorer", "Show in File Manager") were hardcoded and not translatable.

Solution

Wrapped the three labels with the translate() function and added translation keys for all supported locales.

What Changed

Modified CliSection.tsx to call translate() for each platform-specific reveal label. Added corresponding translation keys to all locale files (en, es, fr, ja, ko, zh).

Visual Proof

N/A — No visual changes; translation infrastructure only.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • 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)

Platform-specific reveal labels ("Show in Finder", "Show in Explorer",
"Show in File Manager") are now wrapped with translate() for i18n
support. Also backfills missing translations in non-English locales.

@pullfrog pullfrog 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.

ℹ️ Minor suggestions only — nothing blocking.

Reviewed changes

  • CLI reveal labels translated — getRevealLabel() in CliSection.tsx now routes the three platform labels through translate() with generated auto.components.settings.CliSection.<hash> keys.
  • Catalog entries added — the three keys plus es/fr/ja/ko/zh translations are appended to the locale catalogs, alongside two installFailure* entries backfilled into the non-English catalogs.
  • No test changes — the changed-lines are copy-only; CliSection.test.tsx and CliSection.install-failure.test.tsx still pass.

I verified the generated key hashes match sha1("<filePath>:<text>")[:10] from localize-renderer-strings.mjs, and that verify:localization-catalog, verify:localization-runtime-catalog, and verify:localization-extraction all pass on head.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment thread src/renderer/src/i18n/locales/es.json Resolved
Comment thread src/renderer/src/i18n/locales/zh.json Resolved
@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: aaf19005-2e80-4fb8-bd3c-5d41292f54c6

📥 Commits

Reviewing files that changed from the base of the PR and between 5f55522 and f30dbac.

📒 Files selected for processing (3)
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/es.json

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

getRevealLabel now returns translated labels for Finder, Explorer, and the generic file manager. The English locale defines these labels. The Spanish, French, Japanese, and Korean locales add reveal labels and CLI registration messages. The Chinese locale updates the Explorer label. The French locale also adds an ARIA label for the CLI installation terminal.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to f30db

The CLI localization change has no confirmed user-facing or runtime defect and is ready to merge.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, solution, changed files, and lack of visual changes. However, it omits the required Linked Issue, ELI5, Why, AI Disclosure, Review, and Notes sections, and it pro… Add the missing template sections. Include the linked issue after “Fixes #”, explain why this approach was chosen, provide AI disclosure if applicable, complete the Review and Notes sections, and document manual or automated testing with th…
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (3 skipped: 3 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: making CLI reveal labels translatable.
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: Description check

Explanation

The description explains the problem, solution, changed files, and lack of visual changes. However, it omits the required Linked Issue, ELI5, Why, AI Disclosure, Review, and Notes sections, and it provides no testing results or explanation for the unchecked testing items.

Resolution

Add the missing template sections. Include the linked issue after “Fixes #”, explain why this approach was chosen, provide AI disclosure if applicable, complete the Review and Notes sections, and document manual or automated testing with the platforms tested. Update the checklist after verification.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (3 skipped: 3 unsupported.)

  • Fix all pre-merge checks with AI

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: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: e4f0d3ed-ee7d-4a39-aa5f-4bbc8d0be944

📥 Commits

Reviewing files that changed from the base of the PR and between 71e308e and 5f55522.

📒 Files selected for processing (7)
  • src/renderer/src/components/settings/CliSection.tsx
  • 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/zh.json

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread src/renderer/src/i18n/locales/es.json Resolved
Comment thread src/renderer/src/i18n/locales/fr.json Resolved

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Spanish reveal labels localized — es.json now renders Mostrar en el Explorador and Mostrar en el administrador de archivos, matching the established Explorador / administrador de archivos terms already used in the catalog.
  • Chinese reveal label localized — zh.json now uses 在资源管理器中显示, consistent with the 资源管理器 term used elsewhere.
  • French conflict remedy reworded — fr.json installFailureConflictRemedy now says puis réenregistrez la CLI, clarifying that the CLI (not the user) is re-registered.

The f30dbac commit is copy-only (four translation values, no code paths); verify:localization-catalog, verify:localization-runtime-catalog, verify:localization-extraction, and verify:localization-coverage all pass on head, and the earlier Pullfrog and CodeRabbit threads are resolved.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@OrcaWin
OrcaWin merged commit 6101f01 into main Sep 16, 2026
28 checks passed
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
* fix(i18n): make reveal labels translatable in CliSection

Platform-specific reveal labels ("Show in Finder", "Show in Explorer",
"Show in File Manager") are now wrapped with translate() for i18n
support. Also backfills missing translations in non-English locales.

* add trams;atopm foxes

---------

Co-authored-by: m4air <[email protected]>
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