Skip to content

fix(i18n): translate Korean compare-base commit counts - #28124

Closed
abruption wants to merge 1 commit into
stablyai:mainfrom
abruption:fix/i18n-ko-compare-base-counts
Closed

abruption wants to merge 1 commit into
stablyai:mainfrom
abruption:fix/i18n-ko-compare-base-counts

Conversation

@abruption

Copy link
Copy Markdown
Contributor

ELI5

The compare-base tooltips still display the English words commit and commits in Korean. They now say 커밋 1개 and 커밋 {{count}}개.

What Changed

Correct four Korean catalog values: compareBaseCommitsAheadOne/Other and compareBaseCommitsBehindOne/Other. Add the same four entries to the existing Korean key overrides so repair and regeneration preserve the reviewed wording. Keep every English placeholder: {{ref}} for One, {{ref}} and {{count}} for Other.

Only src/renderer/src/i18n/locales/ko.json and config/scripts/locale-ko-key-overrides.json change.

Why

These tooltips describe commit counts relative to the selected comparison base. Korean uses the same noun for either count, followed by its quantity. Catalog and key-override edits fix the wording without changing count selection or Git behavior. This is separate from #27974 and includes none of its 22-key follow-up changes.

Linked Issue

Follow-up to #27820; reported in #27974 comment 6127240923:
#27974 (comment)

Visual Proof

Catalog before/after (not app screenshots):

Key Before After
AheadOne {{ref}}보다 1 commit 앞서 있음 {{ref}}보다 커밋 1개 앞서 있음
AheadOther {{ref}}보다 {{count}} commits 앞서 있음 {{ref}}보다 커밋 {{count}}개 앞서 있음
BehindOne {{ref}}보다 1 commit 뒤처짐 {{ref}}보다 커밋 1개 뒤처짐
BehindOther {{ref}}보다 {{count}} commits 뒤처짐 {{ref}}보다 커밋 {{count}}개 뒤처짐

The real i18n backend and branch-context title helper were checked under Node for counts 1 and 3. For example, they produce origin/main보다 커밋 3개 앞서 있음 and origin/main보다 커밋 3개 뒤처짐. The running app was not exercised.

Testing

  • I manually tested these changes in the running app
  • Existing focused tests and scoped assertions cover this catalog-only change; no new test files committed

Linux, Node 24.19.0, Vitest 5.0.3:

  • Five relevant test files: 33 tests passed (source-control branch-context stats, locale English regressions, Korean overrides, and translation policy).
  • Exact four-leaf catalog diff, JSON parsing, English placeholder parity, and existing override preservation: passed.
  • Scoped repairTranslatedValue generation and repeat-application stability for all four values: passed.
  • Catalog/runtime-catalog verification, localization extraction and coverage: passed. The combined catalog script was invoked with Node instead of its Bun wrapper.
  • oxfmt --check on both JSON files, oxlint, and git diff --check: passed. Changed-code quality reports no changed JS/TS.
  • Patch applies cleanly to pristine base files and reproduces both modified files byte for byte.

No full pnpm lint, pnpm test, typecheck, app build, Windows/macOS/SSH execution, or app screenshots. The shared Korean catalog serves these platforms; no platform-specific code changes.

AI Disclosure

Codex (GPT-6) inspected the reported keys and call sites, applied the requested Korean wording, and ran the focused checks.

Review

Checked count selection and comparison-reference semantics in branch-context-stats.ts. One keeps its literal 1 and only the ref placeholder; Other retains count and ref. English output stays unchanged. Exactly four Korean catalog leaves and four Korean-only overrides change; existing entries stay intact.

Agent skill upstream boundary

  • Not applicable; no upstream skill source is copied or translated.

Notes

Based on main 5e83ca0edd2b935fac1e3b7940583974aa9f3706. Related public PR checks found no matching correction across 47 inspected Korean/localization PRs. No platform, transport, security, or Git behavior changes.

Checklist

  • Small and focused
  • User-facing before/after, mechanism, and approach explained
  • Running-app screenshots attached (catalog text proof provided above)
  • Self-reviewed
  • Cross-platform and SSH impact considered
  • Full lint/typecheck/test/build checks pass (focused checks passed; full checks not run)

@coderabbitai

coderabbitai Bot commented Oct 13, 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: 819c4b19-0470-4f1d-980b-2f091e6f0ba6
📥 Commits

Reviewing files that changed from the base of the PR and between c8996d7 and e649368.

📒 Files selected for processing (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; 9 remain after this review.

📝 Walkthrough

Walkthrough

Added four Korean override messages for singular and plural commit comparisons. Updated four existing Korean translations to use Korean commit terminology. The ahead/behind distinctions and interpolation placeholders remain unchanged.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to e6493

The change updates Korean commit-count tooltip wording without an identified behavior risk; it is ready for normal checks.

Pre-merge checks · Passed 5
Passed Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: correcting Korean compare-base commit-count translations.
Description check Passed The description is mostly complete. It explains the user impact, exact files and keys changed, rationale, linked context, testing performed, limitations, and scope. It also documents that app screensh…
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…
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.
  • 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.

@Jinwoo-H

Copy link
Copy Markdown
Contributor

Thanks for this! Your fix is included in #28183 (with you as co-author), which consolidates the Korean Settings PRs to avoid 36 serial merge conflicts. A few strings were adjusted to match the English source exactly; details there.

@Jinwoo-H Jinwoo-H closed this Oct 13, 2026
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.

2 participants