Skip to content

fix(i18n): correct Korean sleep with descendants wording - #31456

Merged
nwparker merged 2 commits into
stablyai:mainfrom
leo-yt-upstage:leo-yt-upstage/fix-ko-descendant-sleep
Oct 21, 2026
Merged

nwparker merged 2 commits into
stablyai:mainfrom
leo-yt-upstage:leo-yt-upstage/fix-ko-descendant-sleep

Conversation

@leo-yt-upstage

@leo-yt-upstage leo-yt-upstage commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The Korean workspace menu currently says “sleeping with offspring” for an action that puts a workspace and its descendants to sleep. This replaces it with natural Korean that describes the action.

What Changed

  • Label: 자손과 동침({{value0}}) → 하위 항목도 절전 ({{value0}}).
  • Tooltip: 메모리와 CPU를 확보하려면 이 워크스페이스과 모든 중첩 하위 항목의 활성 패널을 닫으세요. → 이 워크스페이스와 모든 하위 워크스페이스의 활성 패널을 닫아 메모리와 CPU 사용량을 줄입니다.
  • Pin both values in Korean key overrides so catalog regeneration preserves the correction. Keep the descendant-count placeholder intact.

Why

“Descendants” describes nested workspaces, and “Sleep” is the app's resource-saving action. The existing literal translation suggests an unrelated meaning and the tooltip has an incorrect Korean particle.

Linked Issue

Fixes #31454

Checked existing open PRs: #24769 changes other Korean workspace/worktree terminology; #28921 fixes this menu in Japanese. Neither changes these two Korean values.

Visual Proof

Rendered the actual WorkspaceSleepMenuItems, dropdown/tooltip primitives, and main.css in an isolated headless Chromium fixture on macOS, using the production menu width (240px) and typography (12px / 17px, weight 450). The fixture reads the Korean catalog; application state is stubbed.

Descendant count Lines Row height Horizontal overflow
1 1 25px None
99 1 25px None
999 1 25px None
9999 1 25px None

The short label leaves approximately 72px before the right content edge even with four digits. Local before/after screenshots were inspected but are not attached here. This is component rendering evidence, not a full Electron app interaction test.

Testing

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

Passed on macOS:

  • ORCA_BACKGROUND_LAUNCH=1 node config/scripts/verify-localization-catalogs.mjs (16,941 references verified; all existing locale entries validated).
  • One-off Node assertions for both changed strings: English placeholder parity, catalog/override equality, and the actual repairTranslatedValue pipeline starting from old Korean, corrected Korean, and English fallback values.
  • oxfmt --check for both JSON files and git diff --check.

No new test files for this copy-only change. Full lint/typecheck/test/build and full-app Electron checks were not run. The component rendering check above passed. Fresh dependency installation failed because the local pnpm 12.14.0 executable reports ENOEXEC. Existing dependencies allowed catalog validation; the standard Vitest configuration and extraction verifier could not start due to missing devalue / @orca/process-host. Broader checks are left to CI.

AI Disclosure

Implemented with Codex; a separate local Codex review checked wording, recursive workspace semantics, placeholders, and override persistence.

Review

Codex review: APPROVE; no blocking findings. The compact-label follow-up was independently reviewed for meaning, interpolation, and override consistency.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer content copied or translated.

Notes

Two JSON files only. Runtime behavior, remote protocols, shortcuts, and paths are unchanged. “Workspace” covers folder workspaces and Git worktrees on local and remote hosts. No platform-specific or mobile implementation changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Before/after screenshots or videos attached for UI changes
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full lint/typecheck/test/build pass (local limitations above; CI to cover)

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in 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: 88a758dc-d219-4fac-9a33-894422466ad3
📥 Commits

Reviewing files that changed from the base of the PR and between 067a94967be45beb3ec8a10d9820a07a5cf92d91 and 04c6072.

📒 Files selected for processing: 2
  • config/scripts/locale-ko-key-overrides.json
  • src/renderer/src/i18n/locales/ko.json
🚧 Files skipped from review as they are similar to previous changes: 2
  • config/scripts/locale-ko-key-overrides.json
  • src/renderer/src/i18n/locales/ko.json

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

📝 Walkthrough

The change adds Korean translations for the sleep-with-descendants action and updates the existing Korean label and description. The description states that closing active panels in the workspace and its descendants reduces memory and CPU usage.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 04c60

The corrected Korean menu text should persist through catalog regeneration and display with the descendant count. No merge-blocking issue was found.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the Korean internationalization wording fix for sleep-with-descendants behavior.
Description check Passed The description is mostly complete. It explains the user-facing changes, rationale, linked issue, testing performed, limitations, and scope. It does not attach the required before/after visual evidenc…
Linked Issues check Passed Issue #31454 requires corrected Korean label and tooltip text for Sleep with Descendants. The PR summary reports 하위 항목도 절전 ({{value0}}) and a tooltip that describes closing active panels in the work…
Out of Scope Changes check Passed The PR summary limits the changes to the Korean locale catalog and Korean key-override file. The label, tooltip, override pinning, and validation checks directly support issue #31454. No unrelated run…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Description check

Explanation

The description is mostly complete. It explains the user-facing changes, rationale, linked issue, testing performed, limitations, and scope. It does not attach the required before/after visual evidence for this UI text change, and full validation checks were not run, but these gaps are documented.

Full details: Linked Issues check

Explanation

Issue #31454 requires corrected Korean label and tooltip text for Sleep with Descendants. The PR summary reports 하위 항목도 절전 ({{value0}}) and a tooltip that describes closing active panels in the workspace and all descendant workspaces to reduce memory and CPU use. It also reports pinned Korean overrides, preserved {{value0}}, localization catalog validation, and targeted assertions for both strings.

Full details: Out of Scope Changes check

Explanation

The PR summary limits the changes to the Korean locale catalog and Korean key-override file. The label, tooltip, override pinning, and validation checks directly support issue #31454. No unrelated runtime, platform, protocol, or other-locale changes are identified.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 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.

@leo-yt-upstage
leo-yt-upstage force-pushed the leo-yt-upstage/fix-ko-descendant-sleep branch from 067a949 to 04c6072 Compare October 21, 2026 08:33
@nwparker
nwparker merged commit 582efa7 into stablyai:main Oct 21, 2026
1 check passed
smwbev added a commit to smwbev/orca that referenced this pull request Oct 21, 2026
main moved 192 commits. One conflict:

- config/scripts/locale-ko-key-overrides.json: stablyai#31456 and this branch
  both appended entries to the end of the file. main's two
  sleepWithDescendants entries come first, then the 22 Korean count
  sentences from this branch; no key ends up in both.

The six catalogs and en-runtime-required.json merged on their own.
Against main the branch still removes the same twelve keys and adds the
same 24 in all six catalogs, with no other value changed.
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.

Korean workspace menu mistranslates Sleep with Descendants as sleeping with offspring

3 participants