Repository navigation
fix(i18n): select whole count sentences at twelve more call sites - #27974
Conversation
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
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Priority: Severity of issue fixed: Medium Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3afc3af3-0b11-44bb-b6d7-5281c6f74e4b
📒 Files selected for processing (26)
src/renderer/src/components/github/CommentReactions.tsxsrc/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsxsrc/renderer/src/components/onboarding/IntegrationsStep.tsxsrc/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.tssrc/renderer/src/components/right-sidebar/source-control/listing/branch-entry-row.tsxsrc/renderer/src/components/right-sidebar/source-control/listing/review-note-count-title.test.tssrc/renderer/src/components/right-sidebar/source-control/listing/review-note-count-title.tssrc/renderer/src/components/right-sidebar/source-control/listing/uncommitted-entry-row.tsxsrc/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsxsrc/renderer/src/components/sidebar/add-remote-host-ssh-actions.tssrc/renderer/src/components/sidebar/worktree-list/rows/use-project-group-dialogs.tssrc/renderer/src/components/task-page/linear/IssueAttributes.tsxsrc/renderer/src/components/task-page/linear/ProjectFields.tsxsrc/renderer/src/components/task-page/linear/linear-attribute-count-labels.test.tssrc/renderer/src/components/task-page/linear/linear-attribute-count-labels.tssrc/renderer/src/components/terminal-pane/terminal-drop-upload-report.test.tssrc/renderer/src/components/terminal-pane/terminal-drop-upload-report.tssrc/renderer/src/components/terminal-pane/terminal-native-file-drop.tssrc/renderer/src/i18n/count-sentence-locales.test.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/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.
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.
|
Korean review follow-up for head 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 Validation passed: JSON parsing, identical Korean singular/plural values, English placeholder parity, scoped repair-policy generation and stability, catalog/runtime-catalog checks, extraction, coverage, No running-app UI or failure-path testing, full 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.
|
@abruption Applied in f6bbcaf, thank you. The patch went in byte for byte: both files hash to the blobs in your diff headers ( I also ran the checks you listed as not run. 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. |
|
@abruption One more for the audit, if it is useful: |
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]>
|
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.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ffe1e8c1-03f7-4c51-8726-91d5d4729d72
📒 Files selected for processing (9)
config/scripts/locale-ko-key-overrides.jsonsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/ko-ui-semantic-mistranslations.test.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/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.
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.
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.
|
Maintainer edits pushed in 6c89cdd (after merging current main):
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
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 라벨sand Japanese shows3 ラベル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
…Singularand a…Pluralkey with a single{{count}}placeholder, the same pattern #28185 uses for the Settings strings (it absorbed #27907, where the pattern was first proposed).s. Nothing else in those strings is retranslated.라벨 {{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 inconfig/scripts/locale-ko-key-overrides.json.s, which fixes forms like3 reacciónsandEspace de travail 3s associé. Every sentence that changed is listed under Visual Proof.ja,koandzh: those translations treated the ending as an object.ja,zhandestake the wording the catalogs already have for the identical sentence incompareBaseCommitsAheadOne/Other. Korean follows that sentence but says커밋 {{count}}개where those keys keep the Englishcommit/commits(review follow-up, 8978a9f).en.jsonbypnpm sync:localization-catalogand to the six other catalogs by hand;en-runtime-required.jsonis regenerated.pt.jsonarrived inmainwith 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 valueko-ui-semantic-mistranslations.test.tspinned for the oldsshImportSyncedtext (perf(ci): cut redundant tests and reuse expensive setup #28669 has since deleted that test file frommain).linear-attribute-count-labels.tsandreview-note-count-title.ts.uploadingFileToRemoteSingular/Plural, translated in all catalogs, and three of the tests listed under Testing were removed. In 1de2fa9, thezhandjacount strings and theeshost-import pair were reworded.Each call site keeps its original condition (
=== 1or> 1), so no count selects a different English form than before.Why
The catalogs cannot fix this alone.
collectLocaleParityIssuesinverify-localization-catalog.mjsrequires 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
countplurals. 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
jaandzh"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
Japanese
Chinese
Spanish — only the rows that changed
French — only the rows that changed
Testing
I did not exercise the twelve states in the running app; see Visual Proof for what was checked instead.
pnpm lintandpnpm typecheckpass.verify:localization-extraction,verify:localization-catalog,verify:localization-catalogs,verify:localization-runtime-catalogandverify:localization-coveragepass.oxfmt --checkpasses on the eight JSON files andgit diff --checkis clean.vitest rununder Node oversrc/renderer/src/i18n, the seven touched component areas andconfig/scripts: 1,653 files. Three fail —ensure-native-runtime,patched-dependencies-frozen-installandremote-snapshot-alt-screen-host-chain— and the same three fail on a clean checkout ofmainon this machine.pnpm lint,pnpm typecheckand the fiveverify:localization-*scripts pass again;vitest rununder Node oversrc/renderer/src/i18n,config/scripts/locale-*.test.mjsand the seven touched component areas: 1,037 files, 9,240 tests pass.remote-snapshot-alt-screen-host-chaintimed out in the batch run and passes when run alone, on this commit and on the one before it.mainat5e9489c0c0and removing the legacy keys (3f9e8b0):pnpm lint,pnpm typecheckand the fiveverify:localization-*scripts pass.vitest rununder Node oversrc/renderer,src/sharedandconfig/scripts: 6,204 files, 58,463 tests. Five files fail, the same five that fail on a clean checkout ofmainon this machine (last compared oncfbf3610d5):ensure-native-runtime,patched-dependencies-frozen-install, the twonode-ptysuites that cannot spawn here, andremote-snapshot-alt-screen-host-chain, which times out in the full run and passes on its own.mainata1418865f3(5a8675e): one conflict, in theWorktreeListobject ofzh.json— fix(i18n): correct wrong-sense Simplified Chinese UI strings #29321 rewrotegroupRenameFailedDesc, while this branch had appended its twogroupProjectsRemained*keys afterhostRepairRequired; resolved withmain's value first, then the branch's two keys. The six other catalogs,en-runtime-required.jsonandlocale-ko-key-overrides.jsonmerged on their own. Againstmainthe 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,-coverageand-runtime-catalog,tc:web(with--compiler=native, since this machine lacks the Bun thatmainpins for type checking), andoxlintandoxfmt --checkon this PR's files pass.vitest rununder Node over this PR's test files,src/renderer/src/components/sidebar,src/renderer/src/i18nandconfig/scripts: 801 files pass and six fail, all inconfig/scripts—ensure-native-runtime,patched-dependencies-frozen-install,main-entry-facade,process-host-dev-rebuild,verify-cli-binandvitest-run-temp-directory— files this PR does not touch; the last two fail the same way onmainata1418865f3on this machine (temp-directory paths). The merged tree differs frommainonly in this PR's 28 files.pnpm testandpnpm buildwere not run. Thepnpm testwrapper 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.tsrenders all twelve pairs ines,fr,pt,ja,koandzhfor one and for three, and fails if a Latinsfollows a CJK character. I checked that it does fail by puttingラベルsback. It also requiresja,koandzhto use one sentence for both counts, which fails on a leftover Englishcommit/commits.linear-attribute-count-labels.test.tsandreview-note-count-title.test.tscover the two helpers.terminal-drop-upload-report.test.tsnow 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/ptplural sentences or theja/zhstrings. 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:
value1expression used, and I checked the guards around the two> 1sites: neither is reachable with zero.Agent skill upstream boundary
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 insrcpasses an English plural ending any more (checked on the merged tree). One JSX site still appends a baresafter a translated noun,McpConfigSection.tsx:355; it is outside both changes.Checklist
N/Awith reason — rendered text tables instead of screenshots, reason given abovepnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — lint and typecheck pass locally; test and build left to CI, see Testing