Skip to content

fix(i18n): sync localization catalog missing translate keys - #10084

Closed
innocarpe wants to merge 0 commit into
stablyai:mainfrom
innocarpe:fix/sync-localization-catalog-missing-keys
Closed

innocarpe wants to merge 0 commit into
stablyai:mainfrom
innocarpe:fix/sync-localization-catalog-missing-keys

Conversation

@innocarpe

Copy link
Copy Markdown
Contributor

Summary

pnpm lint / pnpm run verify:localization-catalog fails on current main because several translate() keys referenced in renderer source are missing from en.json, and non-English locales are out of parity.

This PR runs the maintained repair path:

pnpm run sync:localization-catalog
  • 14 keys added to en.json from source-level string fallbacks (New Workspace host connect copy, SSH advanced label, sleep-worktree host verification messages)
  • 31 key updates each for es / ja / ko / zh to restore catalog parity
  • No existing English strings rewritten beyond the scripted add/parity repair

Fixes #10080

Screenshots

No visual change — catalog keys only. UI already used English string fallbacks at call sites.

Testing

  • pnpm run verify:localization-catalog fails before, passes after
  • pnpm run sync:localization-catalog (idempotent on this branch)
  • Full pnpm lint / typecheck / test suite (catalog step is the reported failure)

AI Review Report

  • Mechanical fix via official --fix path; no hand-edited translations beyond tool output
  • Cross-locale parity restored so non-English builds keep the same key set as en
  • No runtime logic, shortcuts, paths, or IPC changes

Security Audit

  • JSON locale catalogs only; no secrets, command execution, or auth surface

Notes

  • PR CI may not run full pnpm lint (oxlint-only path for community PRs); local verify is green
  • Contributor-facing: anyone following CONTRIBUTING pnpm lint was blocked on unrelated files — this unblocks that path

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated English, Spanish, Japanese, Korean, and Chinese locale files with strings for workspace composer host connections, worktree opening errors, workspace sleep failures, remote-host dialog labels, and Orca server update status.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the i18n catalog sync fixing missing translation keys.
Description check ✅ Passed All required sections are present and filled; the AI review note is only a bit brief on explicit cross-platform verification.
Linked Issues check ✅ Passed The locale sync addresses #10080 by adding missing en.json keys and restoring parity in es/ja/ko/zh.
Out of Scope Changes check ✅ Passed The changes stay within localization catalogs and do not introduce unrelated runtime or UI logic.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Checkov (3.3.8)
src/renderer/src/i18n/locales/es.json

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'

src/renderer/src/i18n/locales/en.json

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'

src/renderer/src/i18n/locales/ja.json

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'

  • 2 others

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

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 60bac485-7db1-46b7-aeb0-0716e2e8025a

📥 Commits

Reviewing files that changed from the base of the PR and between ee6319e and 23be7ef.

📒 Files selected for processing (5)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

"sshImportFailed": "Failed to import SSH config.",
"importing": "Importing...",
"importSshConfig": "Import ~/.ssh/config"
"importSshConfig": "Import ~/.ssh/config",

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.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Keep the catalog value synchronized with the source fallback.

AddRemoteHostDialog.tsx currently uses or import ~/.ssh/config, but en.json contains Import ~/.ssh/config. Since this catalog is generated from source-level fallbacks, update the catalog (or source) so both values match; otherwise localization verification or the rendered English copy may be inconsistent.

Proposed fix
-          "importSshConfig": "Import ~/.ssh/config",
+          "importSshConfig": "or import ~/.ssh/config",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"importSshConfig": "Import ~/.ssh/config",
"importSshConfig": "or import ~/.ssh/config",

Source: Learnings

@innocarpe

Copy link
Copy Markdown
Contributor Author

Accidentally closed when a bad rebase helper force-pushed an empty tip. Restored and continued as #10348.

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.

[Bug]: verify:localization-catalog fails on main — 11 translate() keys missing from en.json

1 participant