Skip to content

fix(i18n): translate complete settings count sentences - #27907

Closed
abruption wants to merge 1 commit into
stablyai:mainfrom
abruption:fix/ko-settings-count-labels
Closed

abruption wants to merge 1 commit into
stablyai:mainfrom
abruption:fix/ko-settings-count-labels

Conversation

@abruption

Copy link
Copy Markdown
Contributor

ELI5

Korean connection/import counts append an English s to translated nouns when more than one server, Jira site or Linear workspace is reported. Select complete singular/plural sentences with one count placeholder, following the existing project-runtime count pattern, so Korean word order and English plural behavior remain correct. Preserve the existing import/connection logic and legacy keys; migrate other shipped locales mechanically to avoid falling back to English.

What Changed

Add 6 complete translation keys and update the corresponding settings call sites, English/Korean catalogs, Korean overrides and generated runtime catalog. Mechanically migrate the existing Spanish/French/Japanese/Chinese wording and add component regressions.

Korean connection/import counts append an English s to translated nouns when more than one server, Jira site or Linear workspace is reported. Select complete singular/plural sentences with one count placeholder, following the existing project-runtime count pattern, so Korean word order and English plural behavior remain correct. Preserve the existing import/connection logic and legacy keys; migrate other shipped locales mechanically to avoid falling back to English.

All 6 changed keys and before/after copy
Key Before After
auto.components.settings.SshPane.syncedServerSingular Previous assembled label: 동기화된 1 서버 서버 {{count}}개를 동기화했습니다.
auto.components.settings.SshPane.syncedServerPlural Previous assembled label: 동기화된 2 서버s 서버 {{count}}개를 동기화했습니다.
auto.components.settings.task.tracker.integration.cards.connectedSiteSingular Previous assembled label: 1개 사이트 연결됨 사이트 {{count}}개 연결됨
auto.components.settings.task.tracker.integration.cards.connectedSitePlural Previous assembled label: 2개 사이트s 연결됨 사이트 {{count}}개 연결됨
auto.components.settings.task.tracker.integration.cards.connectedWorkspaceSingular Previous assembled label: 1개 워크스페이스 연결됨 워크스페이스 {{count}}개 연결됨
auto.components.settings.task.tracker.integration.cards.connectedWorkspacePlural Previous assembled label: 2개 워크스페이스s 연결됨 워크스페이스 {{count}}개 연결됨

Why

The source actions and English text establish the intended meaning. Key-specific overrides keep the corrected Korean copy during translation regeneration. This confines the change to this menu's copy and search text, without changing settings behavior. Existing non-Korean wording is mechanically retained.

Linked Issue

Fixes #27906

Tracked in #27820. This resolves only the scoped sub-issue, not the entire translation tracker. No duplicate changes from #27803.

Visual Proof

Before — Settings section 1

Image

After — Settings section 1

Image

Isolated component fixtures served from Orca Vite Dev and rendered in headless Chromium. The real Jira/Linear cards and SSH import/toast components are exercised with test APIs; these images are not authenticated account or real SSH-import evidence. Screenshots are explicit isolated component fixtures, not authenticated Jira/Linear accounts or real SSH config import. No credentials, connections or user SSH files were used. SSH zero-import existing already-in-sync branch and Jira zero/disconnected branch remain unchanged; Linear zero-workspace connected state uses plural. es/fr/ja/zh new keys mechanically preserve legacy value0→count and value1→original suffix. Their existing wording/ASCII suffix is not independently retranslated. All legacy catalog keys retained.

Testing

  • Inspected the rendered Korean component fixtures shown above; EN/KO counts 0/1/2 also verified.
  • Automated tests added/updated, or explained why not below: result: PASS; files: 6; tests: 18; catalog_format_diff_regeneration: PASS, 6 new keys; legacy retained. No new test merely duplicating translated literals was added.
  • Localization catalog verification passed.
  • The new Korean keys match their persistent overrides; legacy keys and the existing wording of the other locales are retained.
  • Placeholder preservation, oxfmt --check for the two JSON files, and git diff --check passed.
  • Full repository lint/test/build were not run. Renderer typecheck and changed-code quality passed for this source change. The changed components rendered successfully in the Dev fixture; broader checks are left to CI.

AI Disclosure

Claude Opus 5.5 performed the initial independent audit; Antigravity CLI using Gemini 3.8 Flash High independently proposed translations. Codex verified the source/context, expanded grouped findings into actual keys, applied this patch, ran checks, captured Orca Dev, and prepared the issue/PR. Recommendations were checked against the current source before applying. The user authorized publication.

Review

Self-review: translations were compared with the source and actual actions. Product names, executable names, paths, technical identifiers, and variables remain meaningful. Both catalogs are consistent. Windows/Linux and SSH-specific conditional states were not independently exercised live in this PR; this shared-locale change does not change execution hosts, networking, permissions, agent/integration/Git-provider behavior, or shortcuts. This changes only how help/count text is composed. No execution, authentication, permission, Git mutation or setting behavior changes. The attached screens establish the rendered states only, not every conditional state.

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

X/Twitter: @abruptWave

Checklist

  • Scoped to one related settings area.
  • Explained the before/after, mechanism, and reason.
  • Actual before/after screenshots attached.
  • Self-reviewed for correctness, security, and performance.
  • Cross-platform and SSH/local compatibility considered.
  • Full pnpm lint, pnpm typecheck, pnpm test, and pnpm build; targeted checks passed, broader checks left to CI.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 229229ba-7d35-4340-91d8-b8dc6027a045

📥 Commits

Reviewing files that changed from the base of the PR and between c43ac3f and 108b1d6.


📒 Files selected for processing (14)
  • config/scripts/locale-ko-key-overrides.json
  • src/renderer/src/components/settings/SshPane.test.tsx
  • src/renderer/src/components/settings/SshPane.tsx
  • src/renderer/src/components/settings/jira-integration-card.test.tsx
  • src/renderer/src/components/settings/jira-integration-card.tsx
  • src/renderer/src/components/settings/task-tracker-integration-cards.test.tsx
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • 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

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

smwbev added a commit to smwbev/orca that referenced this pull request Oct 12, 2026
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.
@Jinwoo-H

Copy link
Copy Markdown
Contributor

Thanks for this! Your fix is included in #28185 (with you as co-author), which lands the four sentence-structure PRs together. A few strings were adjusted to match the English source exactly, and the tests that pinned the old fragment text were removed; details there.

@Jinwoo-H Jinwoo-H closed this Oct 13, 2026
OrcaWin added a commit that referenced this pull request Oct 28, 2026
…7974)

* fix(i18n): select whole count sentences at twelve more call sites

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 #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 #27973

* fix(i18n): name commits in Korean in the compare-summary tooltip

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

* fix(i18n): take the Korean count sentences from the audit review

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

* chore(i18n): credit the Korean count sentences to their reviewer

The Korean wording applied in f6bbcaf was supplied by abruption as a
patch in review of #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]>

* fix(i18n): drop the twelve keys the count sentences replaced

No call site reads the twelve noun-plus-ending keys any more, so they
leave the six catalogs, as #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.

* fix(i18n): give remote drop uploads their own count keys; drop low-value 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.

* fix(i18n): natural zh/ja count strings and es host-import wording

---------

Co-authored-by: YEONGUK LEE <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
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 count-labels settings contain mistranslated or untranslated copy

2 participants