Skip to content

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

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

innocarpe wants to merge 2 commits 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

Note: Re-opened as a new PR after an accidental empty force-push during local rebase cleanup closed the original #10084 (no code intent to withdraw). Branch tip restored with an empty recovery commit.

Add 14 missing translate() keys to en.json from source fallbacks and
repair es/ja/ko/zh locale parity so verify:localization-catalog (and
pnpm lint) passes on main again.

Closes stablyai#10080
… rebase cleanup

No code change. Re-opens the contribution for review after branch recovery.
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 491b64ab-763a-4f12-b089-23a5f6c9e19c

📥 Commits

Reviewing files that changed from the base of the PR and between 981653f and f026877.

📒 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

📝 Walkthrough

Walkthrough

Updated English, Spanish, Japanese, Korean, and Chinese locale files with strings for workspace host connections, SSH and remote workspace opening errors, categorized worktree sleep failures, remote host dialog labels, and Orca server update status. Added connection lifecycle messages, retry guidance, SSH persistence text, Advanced labels, Orca version labels, and updating-server status text.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the i18n localization catalog sync and missing translate keys fix.
Description check ✅ Passed All required sections are present, and the PR clearly documents scope, testing, security, and no visual change.
Linked Issues check ✅ Passed The locale sync matches #10080 by restoring missing en keys and parity across es/ja/ko/zh.
Out of Scope Changes check ✅ Passed Changes stay within locale 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.
✨ Finishing Touches
⚔️ Resolve merge conflicts
  • Resolve merge conflict in branch fix/sync-localization-catalog-missing-keys

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.

@innocarpe

Copy link
Copy Markdown
Contributor Author

Rebase status (no push)

Rebased onto current upstream/main (1367094bb) in a worktree.

Outcome: the feature commit is empty after rebase — every key this PR added is already on main. Confirmed with:

Verified 10312 localization key references against en.json.
Verified locale parity for es/ja/ko/zh (11138 keys).

pnpm run verify:localization-catalog exits 0 on main tip.

Did not force-push (would have made the PR tip equal to main). Recommend closing this PR as superseded by main; Closes #10080 is already satisfied if catalog is green on main.

Remote branch left at previous tip so the open PR is unchanged until closed.

@innocarpe

Copy link
Copy Markdown
Contributor Author

Closing as superseded: after rebase onto current main, this branch has no remaining delta — localization catalog verify is already green on main (keys present). Original issue addressed upstream.

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