Skip to content

fix(i18n): translate Settings help as whole sentences instead of fragments - #28185

Merged
Jinwoo-H merged 13 commits into
mainfrom
fix/settings-sentence-copy
Oct 13, 2026
Merged

Jinwoo-H merged 13 commits into
mainfrom
fix/settings-sentence-copy

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​389 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​387
Prod 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​289 $\color{#cf222e}{\Huge{\mathbf{−}}}$​413 $\color{#cf222e}{\Huge{\mathbf{−}}}$​124

ELI5

Some Settings help texts are glued together from several translated pieces ("Synced 3 server" + "s"). Korean, Japanese and Chinese put words in a different order and have no plural "s", so the glued result reads wrong (for example サーバーs, 服务器s). This PR makes each of those texts one complete sentence that translators can write naturally.

What Changed

  • Before: voice dictation help, SSH "synced N servers", connected sites/workspaces counts, the Git settings help (fast-forward, branch-name template) and the repository hook help were assembled from fragments. Non-English users saw stray English plurals, broken word order, and in French a sentence that said the opposite of the English.
  • After: each is a single message with placeholders or rich-text tags (same pattern as other Settings rich text). All six locales carry a full sentence translated from the English; the 32 fragment keys that nothing references any more are deleted.
  • Korean: dictation modes use the same words as the mode buttons (토글 / 길게 누르기); the Git fast-forward help matches the English (the community version added two clauses the English does not have).
  • Other locales: removed the stray "s" in ja/zh, fixed fr agreement and the inverted fr sentence, es grammar, and garbled ja/zh sentences. zh "Hold" mode button changed from 抓住 ("grab") to 按住 to match its description.
  • The community PRs added tests asserting the new es/fr/ja/zh sentences equal the old glued fragments; those would lock in the broken text, so they are removed.

Stacked on #28183 (Korean Settings translations); both touch the Korean overrides file.

Why

Concatenated fragments cannot be translated correctly for languages with different word order or no plural suffix; one message per sentence is the repo's existing pattern. Done as our own PR (credited) rather than four review round-trips.

Linked Issue

Fixes #27900
Fixes #27906
Fixes #27908
Fixes #27912
Fixes #27820

Supersedes #27901 #27907 #27909 #27913.

Visual Proof

N/A: copy only; the components render the same elements with one message instead of several adjacent ones.

Testing

  • pnpm tc:web, pnpm run check:code-quality:changed, pnpm format pass.
  • pnpm test config/scripts/locale src/renderer/src/i18n config/scripts/verify-localization src/renderer/src/components/settings: 268 files, 1862 tests pass.
  • verify-localization-catalog, verify:localization-catalogs, verify-localization-extraction, runtime-required English catalog check and audit-localization-coverage --check pass.
  • rg finds no reference to any deleted key.

Notes

Platform, SSH, mobile and compatibility: renderer copy only. Older paired clients are unaffected (catalogs ship with each client).

Jinwoo-H and others added 12 commits October 13, 2026 01:20
Consolidates the Korean Settings corrections from the community audit
(#27820) into one change. 514 catalog values are corrected: reversed
meanings (session search privacy notice), literal machine glosses
(Custom as 관습, gutter as 배수구, Open as 열려 있는), the terminal
caret named after the Cursor app, and Latin terminal/agent/repo left
inside Korean prose. Every value is pinned in the ko key overrides so a
catalog repair cannot revert it.

Co-authored-by: YEONGUK LEE <[email protected]>
The four settings sentence rewrites left their old fragment keys in every
catalog, kept alive only by tests asserting the new es/fr/ja/zh sentences
equal the old fragments concatenated. Drop those tests and the 32
now-unreferenced keys from all catalogs and the Korean overrides.

Co-authored-by: YEONGUK LEE <[email protected]>
…English

Name the dictation modes with the same 토글/길게 누르기 labels as the mode
buttons, drop the Git fast-forward clauses the English does not contain,
and replace the leftover Latin "agent" in the setup-wait option.

Co-authored-by: YEONGUK LEE <[email protected]>
… ja, and zh

The sentence rewrites were assembled from the old machine-translated
fragments, carrying over English plural "s" suffixes (ja/zh), broken
agreement and an inverted meaning (fr), ungrammatical clauses (es),
word-salad word order (ja/zh), and missing spaces before "when one exists".
Retranslate each from the English. Also name zh's Hold dictation mode 按住
instead of 抓住 ("grab") so the button matches its description.

Co-authored-by: YEONGUK LEE <[email protected]>
…to fix/settings-sentence-copy

# Conflicts:
#	config/scripts/locale-ko-key-overrides.json
#	src/renderer/src/i18n/locales/ko.json
@Jinwoo-H
Jinwoo-H changed the base branch from fix/ko-settings-translations to main October 13, 2026 06:09
…-copy

# Conflicts:
#	config/scripts/locale-ko-key-overrides.json
#	src/renderer/src/i18n/locales/ko.json
@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: 0e6def9d-65b2-4631-91ed-cf9b63af4777
📥 Commits

Reviewing files that changed from the base of the PR and between 0bbe7fb and 3af7c40.

📒 Files selected for processing (23)
  • config/scripts/locale-ko-key-overrides.json
  • src/renderer/src/components/settings/AutoRenameBranchFromWorkSetting.tsx
  • src/renderer/src/components/settings/GitPane.tsx
  • src/renderer/src/components/settings/RepositoryHookPolicySettings.tsx
  • src/renderer/src/components/settings/RepositoryIssueCommandSetting.tsx
  • src/renderer/src/components/settings/SshPane.test.tsx
  • src/renderer/src/components/settings/SshPane.tsx
  • src/renderer/src/components/settings/VoiceDictationSettingsSection.test.tsx
  • src/renderer/src/components/settings/VoiceDictationSettingsSection.tsx
  • src/renderer/src/components/settings/git-description-templates.test.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/repository-description-templates.test.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
  • src/renderer/src/i18n/technical-literal-catalog-values.test.ts

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

📝 Walkthrough

Settings descriptions now use complete translatable strings with inline code, links, and shortcut placeholders. SSH import notices and Jira and Linear connection counts use separate singular and plural messages. Locale catalogs and tests cover the updated text, including English and Korean rendering.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 3af7c

The localization tests protect the intended wording, and no actionable issue remains after normal checks.

Pre-merge checks · Passed 3 · Failed 2

Failed Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check Warning The PR implements the complete-sentence structure for the scoped Voice, count, Git, and repository-hook settings. The Trans changes preserve code markup, {{artifact_url}}, orca.yaml, count value… Keep the complete-sentence key migration and Korean corrections. Restore the existing non-Korean wording for #27906, #27908, and #27912, except for mechanical placeholder and markup changes required by the new message shape. Restore the leg…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 15 files. (8 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (3 passed)
Check name Status Explanation
Title check Passed The title clearly describes the main change: replacing fragmented Settings help translations with complete sentences.
Description check Passed The description covers the user impact, changed areas, rationale, linked issues, visual proof, testing, and compatibility notes. It omits some template sections such as AI Disclosure, Review, and the …
Out of Scope Changes check Passed The reviewed changes remain in Settings localization components, locale catalogs, localization tests, and localization validation data. The component refactors preserve existing Git behavior, count lo…
Full details: Linked Issues check

Explanation

The PR implements the complete-sentence structure for the scoped Voice, count, Git, and repository-hook settings. The Trans changes preserve code markup, {{artifact_url}}, orca.yaml, count values, and the branch-name prompt popover. The added tests cover Korean and English count and shortcut behavior. However, the linked requirements also require mechanical preservation of the existing Spanish, French, Japanese, and Chinese wording for #27906, #27908, and #27912. The PR description states that it changes those translations, including French sentence meaning and agreement, Spanish grammar, and Japanese and Chinese text. The diff also removes legacy fragment keys, although #27906 requires preserving legacy keys and #27908/``#27912 prohibit legacy key edits.

Resolution

Keep the complete-sentence key migration and Korean corrections. Restore the existing non-Korean wording for #27906, #27908, and #27912, except for mechanical placeholder and markup changes required by the new message shape. Restore the legacy keys required by those issues, or update the issue requirements to explicitly allow their removal.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 15 files. (8 skipped: 8 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • 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

smwbev commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@Jinwoo-H One line next to the toast this PR fixed is still English in every locale. SshPane.tsx:268 shows the "nothing to import" case as a bare literal: toast('~/.ssh/config already in sync'). The same sentence is already in all six catalogs as auto.components.sidebar.AddRemoteHostDialog.sshImportAlreadySynced (read by add-remote-host-ssh-actions.ts:179; the catalog text ends with a period), so it needs no new key, only translate() around it. SshPane.test.tsx:103, added here, asserts the bare literal and would change with it. Checked on main at 5e9489c0c0.

Happy to send the PR if that is easier.

smwbev added a commit to smwbev/orca that referenced this pull request Oct 13, 2026
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.
smwbev added a commit to smwbev/orca that referenced this pull request Oct 13, 2026
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.
smwbev added a commit to smwbev/orca that referenced this pull request Oct 13, 2026
main moved 87 commits since the last refresh (a1f8e64 to
5e9489c), seven of them touching en.json. The Korean pass (stablyai#28183)
and the whole-sentence Settings help (stablyai#28185) rewrote enough of the
catalogs that all six conflicted, so the locale files and
en-runtime-required.json are taken from main and the prune is
recomputed against it: 1,477 keys in two passes (1,475, then the
runCount plural pair stranded by the first), the same set as before.
en.json goes from 15,845 entries to 14,368. en-runtime-required.json
is regenerated at 544 of 14,368.

technical-literal-catalog-values.test.ts also conflicted. It takes
main's list minus the 24 entries whose keys are retired, 17 in all.

The merge comes through the detector branch so the two stay in step.
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

3 participants