Skip to content

fix(i18n): select whole count sentences at twelve more call sites - #27974

Merged
OrcaWin merged 17 commits into
stablyai:mainfrom
smwbev:fix/i18n-count-sentences-remaining
Oct 28, 2026
Merged

OrcaWin merged 17 commits into
stablyai:mainfrom
smwbev:fix/i18n-count-sentences-remaining

Conversation

@smwbev

@smwbev smwbev commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Twelve places in Orca build a phrase like "3 labels" by taking the word "label" and sticking an "s" on the end. That works in English. In every other language the "s" lands on a word that does not take one, so Korean shows 3 라벨s and Japanese shows 3 ラベルs. Each place now picks one of two whole sentences instead, so every language can say it correctly.

What Changed

Twelve strings at sixteen call sites stop passing a plural ending as an interpolation value. Each now chooses between a …Singular and a …Plural key with a single {{count}} placeholder, the same pattern #28185 uses for the Settings strings (it absorbed #27907, where the pattern was first proposed).

  • English renders exactly what it rendered before, for every count the call sites can produce.
  • Japanese and Chinese lose the stray Latin s. Nothing else in those strings is retranslated.
  • Korean loses it too, and eleven of the twelve pairs take the wording @abruption supplied in review (comment, applied in f6bbcaf): the noun first, then the count with a counter (라벨 {{count}}개, 멤버 {{count}}명). Three sentences are also reworded to follow the English: a failed discard no longer says the files could not be deleted, the group toast says how many of the contained projects remained, and "restricted key" is spelled out as an API key with restricted access. The 22 values are recorded in config/scripts/locale-ko-key-overrides.json.
  • Spanish and French keep what they rendered for a count of one. Their plural sentences are written out grammatically instead of appending s, which fixes forms like 3 reaccións and Espace de travail 3s associé. Every sentence that changed is listed under Visual Proof.
  • The "commits ahead" tooltip in the compare summary could not be migrated mechanically in ja, ko and zh: those translations treated the ending as an object. ja, zh and es take the wording the catalogs already have for the identical sentence in compareBaseCommitsAheadOne/Other. Korean follows that sentence but says 커밋 {{count}}개 where those keys keep the English commit/commits (review follow-up, 8978a9f).
  • 24 keys are added to en.json by pnpm sync:localization-catalog and to the six other catalogs by hand; en-runtime-required.json is regenerated. pt.json arrived in main with Add Brazilian Portuguese UI localization #31627 and gets the same pairs. The twelve legacy keys are removed from all seven catalogs, as fix(i18n): translate Settings help as whole sentences instead of fragments #28185 did for the keys it replaced. With them go the three Korean override entries for those keys and the one value ko-ui-semantic-mistranslations.test.ts pinned for the old sshImportSynced text (perf(ci): cut redundant tests and reuse expensive setup #28669 has since deleted that test file from main).
  • Two small helpers take the strings that had two call sites each: linear-attribute-count-labels.ts and review-note-count-title.ts.
  • Maintainer edits (comment). In 6c89cdd, the remote drop-upload toast got its own pair, uploadingFileToRemoteSingular/Plural, translated in all catalogs, and three of the tests listed under Testing were removed. In 1de2fa9, the zh and ja count strings and the es host-import pair were reworded.

Each call site keeps its original condition (=== 1 or > 1), so no count selects a different English form than before.

Why

The catalogs cannot fix this alone. collectLocaleParityIssues in verify-localization-catalog.mjs requires every locale value to carry the same placeholders as English, so a translation is not allowed to drop the ending. Whole sentences per count are what the project already does elsewhere (connectedHostCount_one/_other, compareBaseCommitsAheadOne/Other) and what #27907 does for its three call sites.

I did not switch these calls to i18next's own count plurals. That would be a different convention from the rest of the code and from #28185, and the two changes are easier to read side by side if they look alike.

Linked Issue

Fixes #27973

First tracked in #27820, which #28183 and #28185 closed. This is the follow-up offered there: it covers the twelve call sites #28185 does not, and touches none of the strings it rewrote. #12106 has the background.

Visual Proof

Text-only change. The tables are rendered through i18next from the catalogs on this branch, with the legacy key for "before" and the new pair for "after" (the tables were made before the legacy keys were removed). The ja and zh "after" columns predate the maintainer's rewording in 1de2fa9. They are not captured from the running app: several of the twelve states are toasts and failure paths (a discard that fails, symlinks dropped on a terminal, an upload to a remote host) that need a failing or remote setup to reach.

Korean

Where Before, 3 After, 3 After, 1
Reactions on a comment 3 heart 반응s heart 반응 3개 heart 반응 1개
GitLab approvals left 3 승인s 남음 승인 3개 남음 승인 1개 남음
Linear labels picked 3 라벨s 라벨 3개 라벨 1개
Linear members picked 3 멤버s 멤버 3명 멤버 1명
Symlinks skipped on drop 3 심볼릭 링크s을 건너뛰었습니다. 심볼릭 링크 3개를 건너뛰었습니다. 심볼릭 링크 1개를 건너뛰었습니다.
Files uploading on drop 3 파일s을 런타임에 업로드하는 중… 파일 3개를 런타임에 업로드하는 중… 파일 1개를 런타임에 업로드하는 중…
Projects left after deleting a group 그룹 삭제 후에도 1/3 프로젝트s가 남아 있습니다. 그룹을 삭제했지만, 포함된 프로젝트 3개 중 1개가 남아 있습니다. 그룹을 삭제했지만, 포함된 프로젝트 1개 중 1개가 남아 있습니다.
Hosts added from ~/.ssh/config 3 호스트s을(를) Orca에 추가했습니다. 호스트 3개를 Orca에 추가했습니다. 호스트 1개를 Orca에 추가했습니다.
Files that failed to discard 3 파일s을(를) 삭제하지 못했습니다. 파일 3개의 변경 사항을 버리지 못했습니다. 파일 1개의 변경 사항을 버리지 못했습니다.
Review notes on a file row 3 메모s 메모 3개 메모 1개
Commits ahead of the base 3은 main보다 먼저 s을 커밋합니다. main보다 커밋 3개 앞서 있음 main보다 커밋 1개 앞서 있음
Linear workspaces linked (onboarding) 3 워크스페이스s이 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 제한된 키를 교체하세요. 워크스페이스 3개가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 접근 권한이 제한된 API 키를 교체할 수 있습니다. 워크스페이스 1개가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 접근 권한이 제한된 API 키를 교체할 수 있습니다.
Japanese
Where Before, 3 After, 3 After, 1
Reactions on a comment 3 heart 反応s 3 heart 反応 1 heart 反応
GitLab approvals left 3 承認s 残り 3 承認 残り 1 承認 残り
Linear labels picked 3 ラベルs 3 ラベル 1 ラベル
Linear members picked 3 メンバーs 3 メンバー 1 メンバー
Symlinks skipped on drop 3 シンボリックリンクs をスキップしました。 3 シンボリックリンク をスキップしました。 1 シンボリックリンク をスキップしました。
Files uploading on drop 3 ファイルs をランタイムにアップロードしています… 3 ファイル をランタイムにアップロードしています… 1 ファイル をランタイムにアップロードしています…
Projects left after deleting a group グループ削除後も、含まれていたプロジェクトs 3 件中 1 件が残りました。 グループ削除後も、含まれていたプロジェクト 3 件中 1 件が残りました。 グループ削除後も、含まれていたプロジェクト 1 件中 1 件が残りました。
Hosts added from ~/.ssh/config 3 ホストs を同期しました。 3 ホスト を同期しました。 1 ホスト を同期しました。
Files that failed to discard 3 ファイルs を破棄できませんでした 3 ファイル を破棄できませんでした 1 ファイル を破棄できませんでした
Review notes on a file row 3 注s 3 注 1 注
Commits ahead of the base 3 main より先にs をコミット mainより3コミット進んでいます mainより1コミット進んでいます
Linear workspaces linked (onboarding) 3 ワークスペースs がリンクされました。いつでも別のワークスペースを追加したり、制限付きキーを置き換えたりできます。 3 ワークスペース がリンクされました。いつでも別のワークスペースを追加したり、制限付きキーを置き換えたりできます。 1 ワークスペース がリンクされました。いつでも別のワークスペースを追加したり、制限付きキーを置き換えたりできます。
Chinese
Where Before, 3 After, 3 After, 1
Reactions on a comment 3 heart 反应s 3 heart 反应 1 heart 反应
GitLab approvals left 3 批准s 剩余 3 批准 剩余 1 批准 剩余
Linear labels picked 3 标签s 3 标签 1 标签
Linear members picked 3 成员s 3 成员 1 成员
Symlinks skipped on drop 跳过 3 符号链接 s。 跳过 3 符号链接。 跳过 1 符号链接。
Files uploading on drop 正在上传 3 文件s 到运行时... 正在上传 3 文件 到运行时... 正在上传 1 文件 到运行时...
Projects left after deleting a group 删除分组后,3 个包含项目s中仍剩 1 个。 删除分组后,3 个包含项目中仍剩 1 个。 删除分组后,1 个包含项目中仍剩 1 个。
Hosts added from ~/.ssh/config 已同步 3 个主机s。 已同步 3 个主机。 已同步 1 个主机。
Files that failed to discard 无法丢弃 3 文件s 无法丢弃 3 文件 无法丢弃 1 文件
Review notes on a file row 3 注s 3 注 1 注
Commits ahead of the base 3 在 main 之前提交 s 领先 main 3 个提交 领先 main 1 个提交
Linear workspaces linked (onboarding) 3 工作区s 已链接。随时添加另一个工作区或更换受限密钥。 3 工作区 已链接。随时添加另一个工作区或更换受限密钥。 1 工作区 已链接。随时添加另一个工作区或更换受限密钥。
Spanish — only the rows that changed
Where Count Before After
Reactions on a comment 3 3 heart reaccións 3 heart reacciones
GitLab approvals left 3 3 aprobacións restante 3 aprobaciones restantes
Symlinks skipped on drop 3 Se omitió 3 symlinks. Se omitieron 3 symlinks.
Projects left after deleting a group 1 1 de 1 proyecto contenido(s) permanecieron tras eliminar … 1 de 1 proyecto contenido permaneció tras eliminar el grupo.
Projects left after deleting a group 3 1 de 3 proyectos contenido(s) permanecieron tras eliminar… Proyectos contenidos que permanecieron tras eliminar el g…
Hosts added from ~/.ssh/config 3 Se sincronizó 3 hosts. Se sincronizaron 3 hosts.
Files that failed to discard 1 No se pudo descartar el archivo 1 No se pudo descartar 1 archivo
Files that failed to discard 3 No se pudo descartar el archivo 3s No se pudieron descartar 3 archivos
Commits ahead of the base 1 1 confirma antes de main 1 commit por delante de main
Commits ahead of the base 3 3 confirmas antes de main 3 commits por delante de main
Linear workspaces linked (onboarding) 3 3 workspaces vinculado. Agrega otro workspace o reemplaza… 3 workspaces vinculados. Agrega otro workspace o reemplaz…
French — only the rows that changed
Where Count Before After
Symlinks skipped on drop 3 Ignoré : 3 symlinks. Ignorés : 3 symlinks.
Projects left after deleting a group 3 1 projets sur 3 est resté après la suppression du groupe. Projets restés après la suppression du groupe : 1 sur 3.
Linear workspaces linked (onboarding) 1 Espace de travail 1 associé. Ajoutez un autre espace de t… 1 espace de travail associé. Ajoutez un autre espace de t…
Linear workspaces linked (onboarding) 3 Espace de travail 3s associé. Ajoutez un autre espace de … 3 espaces de travail associés. Ajoutez un autre espace de…

Testing

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

I did not exercise the twelve states in the running app; see Visual Proof for what was checked instead.

  • pnpm lint and pnpm typecheck pass.
  • verify:localization-extraction, verify:localization-catalog, verify:localization-catalogs, verify:localization-runtime-catalog and verify:localization-coverage pass. oxfmt --check passes on the eight JSON files and git diff --check is clean.
  • vitest run under Node over src/renderer/src/i18n, the seven touched component areas and config/scripts: 1,653 files. Three fail — ensure-native-runtime, patched-dependencies-frozen-install and remote-snapshot-alt-screen-host-chain — and the same three fail on a clean checkout of main on this machine.
  • After the Korean review follow-up (f6bbcaf): pnpm lint, pnpm typecheck and the five verify:localization-* scripts pass again; vitest run under Node over src/renderer/src/i18n, config/scripts/locale-*.test.mjs and the seven touched component areas: 1,037 files, 9,240 tests pass. remote-snapshot-alt-screen-host-chain timed out in the batch run and passes when run alone, on this commit and on the one before it.
  • After merging main at 5e9489c0c0 and removing the legacy keys (3f9e8b0): pnpm lint, pnpm typecheck and the five verify:localization-* scripts pass. vitest run under Node over src/renderer, src/shared and config/scripts: 6,204 files, 58,463 tests. Five files fail, the same five that fail on a clean checkout of main on this machine (last compared on cfbf3610d5): ensure-native-runtime, patched-dependencies-frozen-install, the two node-pty suites that cannot spawn here, and remote-snapshot-alt-screen-host-chain, which times out in the full run and passes on its own.
  • Latest refresh, merging main at a1418865f3 (5a8675e): one conflict, in the WorktreeList object of zh.json — fix(i18n): correct wrong-sense Simplified Chinese UI strings #29321 rewrote groupRenameFailedDesc, while this branch had appended its two groupProjectsRemained* keys after hostRepairRequired; resolved with main's value first, then the branch's two keys. The six other catalogs, en-runtime-required.json and locale-ko-key-overrides.json merged on their own. Against main the branch removes the same twelve keys and adds the same 24 in all seven catalogs, with no other value changed. verify:localization-extraction, -catalog, -catalogs, -coverage and -runtime-catalog, tc:web (with --compiler=native, since this machine lacks the Bun that main pins for type checking), and oxlint and oxfmt --check on this PR's files pass. vitest run under Node over this PR's test files, src/renderer/src/components/sidebar, src/renderer/src/i18n and config/scripts: 801 files pass and six fail, all in config/scripts — ensure-native-runtime, patched-dependencies-frozen-install, main-entry-facade, process-host-dev-rebuild, verify-cli-bin and vitest-run-temp-directory — files this PR does not touch; the last two fail the same way on main at a1418865f3 on this machine (temp-directory paths). The merged tree differs from main only in this PR's 28 files.
  • pnpm test and pnpm build were not run. The pnpm test wrapper runs Vitest on Bun, and this machine has Bun 1.3.14 rather than the pinned 1.4.2.

New and updated tests. A maintainer removed the first two items and the symlink case of the third in 6c89cdd, because the verify:localization-* scripts already check key and placeholder parity:

  • count-sentence-locales.test.ts renders all twelve pairs in es, fr, pt, ja, ko and zh for one and for three, and fails if a Latin s follows a CJK character. I checked that it does fail by putting ラベルs back. It also requires ja, ko and zh to use one sentence for both counts, which fails on a leftover English commit/commits.
  • linear-attribute-count-labels.test.ts and review-note-count-title.test.ts cover the two helpers.
  • terminal-drop-upload-report.test.ts now expects the new keys and checks both counts.

AI Disclosure

Claude Opus 5.5 in Claude Code found the call sites, wrote the patch and the tests, derived the locale strings and ran the checks. I directed the work and approved publishing it. No native speaker has checked the es/fr/pt plural sentences or the ja/zh strings. The Korean strings were reviewed by @abruption, who runs the Korean audit in #27820 and wrote the wording of eleven of the twelve pairs.

Review

Self-review, by risk:

  • Behavior. Only which translation key is requested changes. No handler, state, network or Git behavior is touched. Each ternary mirrors the comparison the old value1 expression used, and I checked the guards around the two > 1 sites: neither is reachable with zero.
  • English regressions. For every reachable count the English output is byte-identical to the old template.
  • One pre-existing mismatch kept on purpose. The two upload call sites shared one key with different inline defaults ("to runtime…" and "to remote…"). They still share one pair. Splitting them needs a new translated sentence in five locales and belongs in its own change.
  • Catalog shape. New keys sit where their legacy siblings were in every catalog; the locale files were edited line by line, so no other entry moved or changed.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No security, SSH, mobile or performance impact. Community language packs keep loading: a pack entry for a key the app no longer reads is ignored, and a pack that wants these sentences translates the 24 new keys. Until it does, these twelve strings fall back to English, the same as after #28185.

With #28185 merged, once this lands no translate() call in src passes an English plural ending any more (checked on the merged tree). One JSX site still appends a bare s after a translated noun, McpConfigSection.tsx:355; it is outside both changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason — rendered text tables instead of screenshots, reason given above
  • 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) — lint and typecheck pass locally; test and build left to CI, see Testing

Twelve strings were a noun plus a plural ending passed as an
interpolation value, so every non-English locale got a Latin "s" glued
to its own noun whenever the count was not one. Each call site now
chooses between two whole sentences with a single {{count}}, the same
Singular/Plural pattern stablyai#27907 uses for three Settings strings.

ja, ko and zh drop the stray ending. es and fr keep what they rendered
for one and get grammatical plural sentences. The "commits ahead"
tooltip in the compare summary takes the wording the catalogs already
have for the identical sentence, because three translations treated the
ending as an object. Legacy keys stay in the catalogs.

Fixes stablyai#27973
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
Walkthrough

Count-based interface messages now use separate singular and plural translations instead of adding a plural suffix through interpolation. The changes update call sites, add shared formatters for Linear counts and Source Control review notes, and add translation strings and tests. Locale updates cover English, Spanish, French, Japanese, Korean, and Chinese.

Priority: Normal

Severity of issue fixed: Medium

Merge Risk: Low · previous review 3f9e8

Remote-upload progress can identify the destination as runtime, and the Chinese approval count reads awkwardly. These are limited copy issues, so the change presents low operational risk.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Out of Scope Changes check Warning The count-string source changes, catalog changes, helper tests, and legacy-key cleanup support #27973. However, the whole-PR diff also removes unrelated nativeChat settings entries and the `composer… Restore the unrelated nativeChat and composer.permissions entries, or provide a linked coding requirement that requires their removal.
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed Issue #27973 requires the twelve affected strings to select whole-sentence singular and plural translations. The PR updates the reported sixteen call sites, adds the count-based catalog keys for the s…
Title check Passed The title clearly and concisely describes the main change: selecting complete singular or plural count sentences at twelve additional call sites.
Description check Passed The pull request description is complete and follows the repository template. It explains the change and rationale, links issue #27973, documents visual proof with a reason for not using screenshots, …
Full details: Linked Issues check

Explanation

Issue #27973 requires the twelve affected strings to select whole-sentence singular and plural translations. The PR updates the reported sixteen call sites, adds the count-based catalog keys for the six locales, and removes the English plural-ending interpolation. The compare-summary call now selects separate count sentences, including the Korean 커밋 {{count}}개 wording. Tests cover the twelve locale pairs, helper functions, and terminal drop behavior. The three Settings call sites assigned to #27907 remain outside this change.

Full details: Description check

Explanation

The pull request description is complete and follows the repository template. It explains the change and rationale, links issue #27973, documents visual proof with a reason for not using screenshots, lists testing and known limitations, includes AI disclosure, review notes, compatibility considerations, and checklist status. It clearly states that pnpm test, pnpm build, and running-app testing were not performed.

Full details: Out of Scope Changes check

Explanation

The count-string source changes, catalog changes, helper tests, and legacy-key cleanup support #27973. However, the whole-PR diff also removes unrelated nativeChat settings entries and the composer.permissions entry from src/renderer/src/i18n/en-runtime-required.json. These entries do not implement the twelve affected strings or the #27973 scope.

Resolution

Restore the unrelated nativeChat and composer.permissions entries, or provide a linked coding requirement that requires their removal.

  • 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.

@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: 3afc3af3-0b11-44bb-b6d7-5281c6f74e4b
📥 Commits

Reviewing files that changed from the base of the PR and between 41fc954 and 500c310.

📒 Files selected for processing (26)
  • src/renderer/src/components/github/CommentReactions.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx
  • src/renderer/src/components/onboarding/IntegrationsStep.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/branch-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/review-note-count-title.test.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/review-note-count-title.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsx
  • src/renderer/src/components/sidebar/add-remote-host-ssh-actions.ts
  • src/renderer/src/components/sidebar/worktree-list/rows/use-project-group-dialogs.ts
  • src/renderer/src/components/task-page/linear/IssueAttributes.tsx
  • src/renderer/src/components/task-page/linear/ProjectFields.tsx
  • src/renderer/src/components/task-page/linear/linear-attribute-count-labels.test.ts
  • src/renderer/src/components/task-page/linear/linear-attribute-count-labels.ts
  • src/renderer/src/components/terminal-pane/terminal-drop-upload-report.test.ts
  • src/renderer/src/components/terminal-pane/terminal-drop-upload-report.ts
  • src/renderer/src/components/terminal-pane/terminal-native-file-drop.ts
  • src/renderer/src/i18n/count-sentence-locales.test.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • 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: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread src/renderer/src/i18n/locales/ko.json Resolved
The Korean pair for the "commits ahead" tooltip was copied from
compareBaseCommitsAheadOne/Other, which keep the English "commit" and
"commits". Both sentences now say 커밋 with the 개 counter, the form
stablyai#27907 uses for its Korean count sentences, so the tooltip no longer
carries an English plural.

The locale test also requires ja, ko and zh to use one sentence for
both counts. It fails on the previous Korean pair.
@abruption

Copy link
Copy Markdown
Contributor

Korean review follow-up for head 8978a9f65bdeea5fbd0c066fee8d88758bedb489. This patch has been verified locally but has not been pushed to the PR branch.

I checked all 12 sentence pairs / 24 keys against their 16 actual call sites. The patch updates 22 Korean values and records them in the existing Korean key overrides; the already-correct commitsAhead pair stays unchanged. The discard wording covers reverting tracked changes and deleting untracked files. “Restricted key” is clarified as an API key with restricted access. English reaction names and the shared runtime/remote upload keys remain outside this patch.

Validation passed: JSON parsing, identical Korean singular/plural values, English placeholder parity, scoped repair-policy generation and stability, catalog/runtime-catalog checks, extraction, coverage, oxfmt, oxlint, and git diff --check. Related tests passed: 5 files, 29 tests, using Node 24.19.0 and Vitest 5.0.3. The patch applies cleanly to pristine head files and reproduces the validated changes byte for byte.

No running-app UI or failure-path testing, full pnpm lint/pnpm test, typecheck, or app build was performed. The combined catalog script was run with Node rather than its Bun wrapper. At the last check, all three remote CI workflows were action_required.

diff --git a/config/scripts/locale-ko-key-overrides.json b/config/scripts/locale-ko-key-overrides.json
index 031ce7b5..d4117cfd 100644
--- a/config/scripts/locale-ko-key-overrides.json
+++ b/config/scripts/locale-ko-key-overrides.json
@@ -5104,5 +5104,71 @@
   },
   "components.workspace.cleanup.browse.agent.working": {
     "ko": "작업 중"
+  },
+  "auto.components.GitHubItemDialog.reactionCountSingular": {
+    "ko": "{{reaction}} 반응 {{count}}개"
+  },
+  "auto.components.GitHubItemDialog.reactionCountPlural": {
+    "ko": "{{reaction}} 반응 {{count}}개"
+  },
+  "auto.components.GitLabItemDialog.approvalsRemainingSingular": {
+    "ko": "승인 {{count}}개 남음"
+  },
+  "auto.components.GitLabItemDialog.approvalsRemainingPlural": {
+    "ko": "승인 {{count}}개 남음"
+  },
+  "auto.components.TaskPage.labelCountSingular": {
+    "ko": "라벨 {{count}}개"
+  },
+  "auto.components.TaskPage.labelCountPlural": {
+    "ko": "라벨 {{count}}개"
+  },
+  "auto.components.TaskPage.memberCountSingular": {
+    "ko": "멤버 {{count}}명"
+  },
+  "auto.components.TaskPage.memberCountPlural": {
+    "ko": "멤버 {{count}}명"
+  },
+  "auto.components.terminal.pane.terminal.drop.handler.skippedSymlinkSingular": {
+    "ko": "심볼릭 링크 {{count}}개를 건너뛰었습니다."
+  },
+  "auto.components.terminal.pane.terminal.drop.handler.skippedSymlinkPlural": {
+    "ko": "심볼릭 링크 {{count}}개를 건너뛰었습니다."
+  },
+  "auto.components.terminal.pane.terminal.drop.handler.uploadingFileSingular": {
+    "ko": "파일 {{count}}개를 런타임에 업로드하는 중…"
+  },
+  "auto.components.terminal.pane.terminal.drop.handler.uploadingFilePlural": {
+    "ko": "파일 {{count}}개를 런타임에 업로드하는 중…"
+  },
+  "auto.components.sidebar.WorktreeList.groupProjectsRemainedSingular": {
+    "ko": "그룹을 삭제했지만, 포함된 프로젝트 {{count}}개 중 {{remaining}}개가 남아 있습니다."
+  },
+  "auto.components.sidebar.WorktreeList.groupProjectsRemainedPlural": {
+    "ko": "그룹을 삭제했지만, 포함된 프로젝트 {{count}}개 중 {{remaining}}개가 남아 있습니다."
+  },
+  "auto.components.sidebar.AddRemoteHostDialog.sshImportSyncedSingular": {
+    "ko": "호스트 {{count}}개를 Orca에 추가했습니다."
+  },
+  "auto.components.sidebar.AddRemoteHostDialog.sshImportSyncedPlural": {
+    "ko": "호스트 {{count}}개를 Orca에 추가했습니다."
+  },
+  "auto.components.right.sidebar.SourceControl.discardFailedSingular": {
+    "ko": "파일 {{count}}개의 변경 사항을 버리지 못했습니다."
+  },
+  "auto.components.right.sidebar.SourceControl.discardFailedPlural": {
+    "ko": "파일 {{count}}개의 변경 사항을 버리지 못했습니다."
+  },
+  "auto.components.right.sidebar.SourceControl.noteCountSingular": {
+    "ko": "메모 {{count}}개"
+  },
+  "auto.components.right.sidebar.SourceControl.noteCountPlural": {
+    "ko": "메모 {{count}}개"
+  },
+  "auto.components.onboarding.IntegrationsStep.linearWorkspacesLinkedSingular": {
+    "ko": "워크스페이스 {{count}}개가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 접근 권한이 제한된 API 키를 교체할 수 있습니다."
+  },
+  "auto.components.onboarding.IntegrationsStep.linearWorkspacesLinkedPlural": {
+    "ko": "워크스페이스 {{count}}개가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 접근 권한이 제한된 API 키를 교체할 수 있습니다."
   }
 }
diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json
index 230a2757..ec4fe4ba 100644
--- a/src/renderer/src/i18n/locales/ko.json
+++ b/src/renderer/src/i18n/locales/ko.json
@@ -1400,8 +1400,8 @@
         "09d67a0f9b": "PR을 닫지 못했습니다.",
         "88809e79db": "PR을 다시 열지 못했습니다.",
         "00f55cc17b": "이 PR에는 저장소 액세스를 사용할 수 없습니다.",
-        "reactionCountSingular": "{{count}} {{reaction}} 반응",
-        "reactionCountPlural": "{{count}} {{reaction}} 반응"
+        "reactionCountSingular": "{{reaction}} 반응 {{count}}개",
+        "reactionCountPlural": "{{reaction}} 반응 {{count}}개"
       },
       "GitLabItemDialog": {
         "65e784c1f1": "다시 열기",
@@ -1468,8 +1468,8 @@
         "4168eb2c51": "해결",
         "commentTooLarge": "댓글이 너무 길어 안전하게 제출할 수 없습니다.",
         "gitlabActionFailed": "GitLab 작업이 실패했습니다.",
-        "approvalsRemainingSingular": "{{count}} 승인 남음",
-        "approvalsRemainingPlural": "{{count}} 승인 남음"
+        "approvalsRemainingSingular": "승인 {{count}}개 남음",
+        "approvalsRemainingPlural": "승인 {{count}}개 남음"
       },
       "JiraIssueWorkspace": {
         "b0b92666c9": "댓글",
@@ -2277,10 +2277,10 @@
         "loadPageUnreachable": "{{value0}} 페이지는 GitHub 검색이 반환할 수 있는 범위를 벗어났습니다.",
         "loadPageFailed": "GitHub에서 {{value0}} 페이지를 불러오지 못했습니다.",
         "loadPageNoMoreResults": "{{value0}} 페이지에 더 이상 결과가 없습니다.",
-        "labelCountPlural": "{{count}} 라벨",
-        "labelCountSingular": "{{count}} 라벨",
-        "memberCountPlural": "{{count}} 멤버",
-        "memberCountSingular": "{{count}} 멤버"
+        "labelCountPlural": "라벨 {{count}}개",
+        "labelCountSingular": "라벨 {{count}}개",
+        "memberCountPlural": "멤버 {{count}}명",
+        "memberCountSingular": "멤버 {{count}}명"
       },
       "Terminal": {
         "73768427cf": "닫기",
@@ -3265,10 +3265,10 @@
                 "b4cf68e889": "{{value0}} {{value1}}을(를) 건너뛰었습니다.",
                 "writeTimeout": "파일 드롭이 취소되었습니다. 안전 시간 제한 전에 터미널이 경로를 받지 않았습니다.",
                 "writeRejected": "파일 드롭이 취소되었습니다. 터미널이 경로를 받을 수 없습니다.",
-                "skippedSymlinkSingular": "{{count}} 심볼릭 링크를 건너뛰었습니다.",
-                "skippedSymlinkPlural": "{{count}} 심볼릭 링크를 건너뛰었습니다.",
-                "uploadingFileSingular": "{{count}} 파일을 런타임에 업로드하는 중…",
-                "uploadingFilePlural": "{{count}} 파일을 런타임에 업로드하는 중…"
+                "skippedSymlinkSingular": "심볼릭 링크 {{count}}개를 건너뛰었습니다.",
+                "skippedSymlinkPlural": "심볼릭 링크 {{count}}개를 건너뛰었습니다.",
+                "uploadingFileSingular": "파일 {{count}}개를 런타임에 업로드하는 중…",
+                "uploadingFilePlural": "파일 {{count}}개를 런타임에 업로드하는 중…"
               }
             }
           },
@@ -5731,8 +5731,8 @@
           "failedUnnestWorkspace": "워크트리 펼치기 실패",
           "groupRenameFailed": "그룹 이름을 바꾸지 못했습니다.",
           "groupRenameFailedDesc": "Orca는 그룹 호스트에게 새 이름을 확인할 수 없습니다. 다시 연결한 후 그룹을 다시 확인하세요.",
-          "groupProjectsRemainedSingular": "그룹 삭제 후에도 {{remaining}}/{{count}} 프로젝트가 남아 있습니다.",
-          "groupProjectsRemainedPlural": "그룹 삭제 후에도 {{remaining}}/{{count}} 프로젝트가 남아 있습니다."
+          "groupProjectsRemainedSingular": "그룹을 삭제했지만, 포함된 프로젝트 {{count}}개 중 {{remaining}}개가 남아 있습니다.",
+          "groupProjectsRemainedPlural": "그룹을 삭제했지만, 포함된 프로젝트 {{count}}개 중 {{remaining}}개가 남아 있습니다."
         },
         "WorktreeMetaDialog": {
           "3db0a2a593": "취소",
@@ -6291,8 +6291,8 @@
           "identityFileFromConfigHint": "의도적으로 비워 두기: Orca는 ~/.ssh/config가 {{value0}}을 확인하는 모든 키를 사용합니다. 해당 키만 사용하려면 경로를 입력하세요.",
           "sshConfigPickerRetry": "다시 시도하세요",
           "sshConfigPickerResolving": "독서…",
-          "sshImportSyncedPlural": "{{count}} 호스트을(를) Orca에 추가했습니다.",
-          "sshImportSyncedSingular": "{{count}} 호스트을(를) Orca에 추가했습니다."
+          "sshImportSyncedPlural": "호스트 {{count}}개를 Orca에 추가했습니다.",
+          "sshImportSyncedSingular": "호스트 {{count}}개를 Orca에 추가했습니다."
         },
         "ForgetSshWorkspaceDialog": {
           "reconnectFailed": "재연결 실패",
@@ -12955,10 +12955,10 @@
             "entryDeleteFailed": "'{{value0}}'을(를) 삭제하지 못했습니다.",
             "entryFailedInWorkspace": "{{value1}}의 {{value0}}",
             "diffCommentNotesCopyFailed": "메모를 복사하지 못했습니다.",
-            "discardFailedSingular": "{{count}} 파일을(를) 삭제하지 못했습니다.",
-            "discardFailedPlural": "{{count}} 파일을(를) 삭제하지 못했습니다.",
-            "noteCountSingular": "{{count}} 메모",
-            "noteCountPlural": "{{count}} 메모"
+            "discardFailedSingular": "파일 {{count}}개의 변경 사항을 버리지 못했습니다.",
+            "discardFailedPlural": "파일 {{count}}개의 변경 사항을 버리지 못했습니다.",
+            "noteCountSingular": "메모 {{count}}개",
+            "noteCountPlural": "메모 {{count}}개"
           },
           "SourceControlAgentActionDialog": {
             "8e856842d1": "선택한 agent를 시작할 수 없습니다.",
@@ -14050,8 +14050,8 @@
           "d6e5dba05a": "로그인",
           "0b4a7d23ab": "로그인 중",
           "a74c6d6b18": "설치되지 않은",
-          "linearWorkspacesLinkedSingular": "{{count}} 워크스페이스가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 제한된 키를 교체하세요.",
-          "linearWorkspacesLinkedPlural": "{{count}} 워크스페이스가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 제한된 키를 교체하세요."
+          "linearWorkspacesLinkedSingular": "워크스페이스 {{count}}개가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 접근 권한이 제한된 API 키를 교체할 수 있습니다.",
+          "linearWorkspacesLinkedPlural": "워크스페이스 {{count}}개가 연결되었습니다. 언제든지 다른 워크스페이스를 추가하거나 접근 권한이 제한된 API 키를 교체할 수 있습니다."
         },
         "NotificationStep": {
           "3bede04483": "테스트 알림 보내기",

Eleven of the twelve Korean pairs still put the number before the noun
with no counter ("3 라벨"), the order left over from dropping the
English plural ending. They now read noun, number, counter
("라벨 3개", "멤버 3명"), the wording abruption supplied in review of
stablyai#27974. The "commits ahead" pair already had that form and is unchanged.

Three sentences are also reworded to follow the English: a failed
discard no longer says the files could not be deleted, the group toast
says how many of the contained projects remained, and "restricted key"
is spelled out as an API key with restricted access.

The 22 values are recorded in locale-ko-key-overrides.json, next to the
other reviewed Korean strings.
@smwbev

smwbev commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

@abruption Applied in f6bbcaf, thank you. The patch went in byte for byte: both files hash to the blobs in your diff headers (d4117cfd, ec4fe4ba).

I also ran the checks you listed as not run. pnpm lint and pnpm typecheck pass, and so do the five verify:localization-* scripts. Vitest under Node over src/renderer/src/i18n, config/scripts/locale-*.test.mjs and the seven touched component areas: 1,037 files, 9,240 tests pass. One file, remote-snapshot-alt-screen-host-chain.test.ts, timed out in the batch run and passes when run alone, on this commit and on the one before it. count-sentence-locales.test.ts still holds for all twelve Korean pairs: each renders the count, none carries a Latin s, and both counts use one sentence.

The Korean table in the description is re-rendered from the branch, and the description now credits the wording to you. Nothing was checked in the running app, same as before.

@smwbev

smwbev commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

@abruption One more for the audit, if it is useful: compareBaseCommitsAheadOne/Other and compareBaseCommitsBehindOne/Other in ko.json still say commit/commits in English on main ({{ref}}보다 {{count}} commits 앞서 있음). They are outside this PR and not in the #27820 list.

The Korean wording applied in f6bbcaf was supplied by abruption as a
patch in review of stablyai#27974 and went in byte for byte. That commit could
not carry a co-author trailer, so this empty one does.

Co-authored-by: YEONGUK LEE <[email protected]>
@abruption

Copy link
Copy Markdown
Contributor

Thanks for flagging these, @smwbev. Confirmed that the four compare-base strings still contain English commit wording on main. This is useful context for the Korean audit.

main moved 144 commits, among them the maintainer's Korean pass (stablyai#28183)
and the whole-sentence Settings help (stablyai#28185). The one conflict is
locale-ko-key-overrides.json, where both sides appended entries at the
end: main's 488 come first, then the 22 from this branch. No key is in
both.
No call site reads the twelve noun-plus-ending keys any more, so they
leave the six catalogs, as stablyai#28185 did for the keys it replaced. With
them go the three Korean override entries for those keys and the one
value ko-ui-semantic-mistranslations.test.ts pinned for the old
sshImportSynced text; the sentence it guarded is now the
sshImportSyncedSingular/Plural pair, covered by
count-sentence-locales.test.ts. en-runtime-required.json is
regenerated.

@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: Advanced
  • Run ID: ffe1e8c1-03f7-4c51-8726-91d5d4729d72
📥 Commits

Reviewing files that changed from the base of the PR and between 4fd4044 and 3f9e8b0.

📒 Files selected for processing (9)
  • config/scripts/locale-ko-key-overrides.json
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/ko-ui-semantic-mistranslations.test.ts
  • 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
💤 Files with no reviewable changes (1)
  • src/renderer/src/i18n/ko-ui-semantic-mistranslations.test.ts
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.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.

Comment thread src/renderer/src/i18n/locales/zh.json Resolved
main moved 180 commits. The one conflict is en.json, where the Jira board
(stablyai#28633) and this branch both appended keys to the end of
auto.components.TaskPage: main's jiraBoardEmptyColumn comes first, then
the four labelCount and memberCount sentences from this branch. The
other five catalogs 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.
main moved 171 commits. Two kinds of conflict:

- es, fr, ja, ko and zh: the translation sync (stablyai#28896) and this branch
  both appended keys to the end of auto.components.TaskPage. main's six
  Jira column labels and jiraBoardEmptyColumn come first, then the four
  labelCount and memberCount sentences from this branch.
- ko-ui-semantic-mistranslations.test.ts was deleted on main (stablyai#28669);
  this branch only dropped the pinned sshImportSynced value from it, so
  the deletion is taken.

en.json merged on its 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.
main moved 677 commits. One kind of conflict:

- en, es, fr, ja, ko and zh: stablyai#30271 and this branch both appended keys
  to the end of auto.components.sidebar.WorktreeList. main's
  hostRepairRequired comes first, then the two groupProjectsRemained
  sentences from this branch.

en-runtime-required.json merged on its own and keeps main's entries;
the branch still only swaps the drop-upload toast key there. Against
main the branch still removes the same twelve keys and adds the same 24
in all six catalogs, with no other value changed.
main moved 408 commits. One kind of conflict:

- en, es, fr, ja, ko and zh: stablyai#31082 and this branch both appended keys
  to the end of auto.components.sidebar.AddRemoteHostDialog. main's
  pairingHelpShareComputer comes first, then the two sshImportSynced
  sentences from this branch.

en-runtime-required.json and the Korean overrides merged on their own;
the branch still only swaps the drop-upload toast key in the runtime
catalog. Against main the branch still removes the same twelve keys and
adds the same 24 in all six catalogs, with no other value changed.
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.
main moved 126 commits. Nothing conflicted, but stablyai#31627 added pt.json
with all keys of en.json, including the twelve legacy keys this branch
removes, which verify:localization-catalog rejects as extra entries.

- pt.json: the twelve legacy keys are removed and the 24 new keys are
  added as whole Portuguese sentences, at the same places as in es.json.
- count-sentence-locales.test.ts: pt joins es and fr in the check that
  every pair renders a whole sentence for one and for several.

The six other catalogs and en-runtime-required.json merged on their own.
Against main the branch removes the same twelve keys and adds the same
24 in all seven catalogs, with no other value changed.
smwbev and others added 3 commits October 27, 2026 07:12
main moved 1112 commits. One conflict, in the WorktreeList object of
zh.json: stablyai#29321 rewrote groupRenameFailedDesc, while this branch had
appended its two groupProjectsRemained* keys after hostRepairRequired.
Resolved with main's value first, then the branch's two keys.

The other six catalogs, en-runtime-required.json and
locale-ko-key-overrides.json merged on their own. Against main the
branch removes the same twelve keys and adds the same 24 in all seven
catalogs, with no other value changed.
…lue tests

- Remote terminal drop uploads used the runtime keys with a different
  fallback ('to remote…'); split them into uploadingFileToRemote{Singular,Plural}
  with translations in all catalogs.
- Remove mock-translate tests and the catalog-pinning count-sentence test;
  verify:localization-* already enforces key and placeholder parity.
- Trim the 'why whole sentences' comments.
- Regenerate en-runtime-required.json.
@OrcaWin

OrcaWin commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Maintainer edits pushed in 6c89cdd (after merging current main):

  • Split the remote drop-upload toast into its own pair, uploadingFileToRemoteSingular/Plural ("…to remote…"), translated in all catalogs, so runtime and remote no longer share a key with different fallbacks.
  • Removed count-sentence-locales.test.ts, linear-attribute-count-labels.test.ts, review-note-count-title.test.ts and the new symlink-count case in terminal-drop-upload-report.test.ts (the existing key update there stays). The verify:localization-* scripts already enforce key/placeholder parity, and these tests mostly assert key strings or pin catalog text.
  • Trimmed the "why whole sentences" comments.
  • Regenerated en-runtime-required.json with pnpm sync:localization-runtime-catalog.

Thanks for the thorough work here.

# Conflicts:
#	config/scripts/locale-ko-key-overrides.json
#	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/pt.json
#	src/renderer/src/i18n/locales/zh.json
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.

Twelve count strings glue an English plural "s" onto translated nouns

3 participants