Skip to content

chore(i18n): translate 76 new keys to es/fr/ja/ko/zh - #25719

Merged
AmethystLiang merged 1 commit into
mainfrom
translation-update
Oct 6, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
translation-update

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​565 $\color{#cf222e}{\Huge{\mathbf{−}}}$​33 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​532

ELI5

Orca shipped new screens and messages since the last translation sweep (a CSV file editor, provider credit balances, the activity thread list, nested-worktree deletion, the Jira assignee field, and workspace-delete change checks). They appeared in English for everyone. This PR adds the Spanish, French, Japanese, Korean, and Chinese text for those new messages and corrects a few stale ones.

What Changed

  • Before: 87 English-only keys fell back to English in all five locales, and 3 English wordings had changed without a matching locale update (Gemini CLI "legacy" copy/label, onboarding arrow spacing).
  • After: the 76 translatable new keys plus the 3 stale values are translated for es/fr/ja/ko/zh (es +106, fr +103, ja +104, ko +105, zh +105 lines). Only locale JSON files and the translation scan tracker changed. Strictly additive: +380 locale entries, 0 removed.
  • Mechanism: computed the base-to-HEAD en.json delta, translated it per config/i18n-translation-source.md, and applied it through config/scripts/apply-translation-delta.mjs (placeholder-parity check + the repairTranslatedValue policy pipeline), then ran 3 subagent review rounds (5 reviewers each).

Why

Keeps every locale complete for the current English catalog without touching product code. 11 of the original 87 are provider credit-balance keys that provider-credit-balance-locales.test.ts intentionally keeps absent from target catalogs (sparse English fallback, #25408), so they are deliberately left untranslated — the rest sit at 15269/15280 with only those 11 pinned gaps. Leaving the delta untranslated is safe at runtime but shows English to localized users.

Linked Issue

N/A — recurring translation sweep tracked in config/update-translation.txt (Scan 2026-10-05 entry).

Visual Proof

N/A — locale JSON values only, no visual or interaction change; rendered through the existing i18n fallback path.

Testing

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

Verification (all pass):

  • node config/scripts/verify-localization-catalog.mjs — all five locales 15269/15280 (11 intentional balance omissions), 0 interpolation mismatches, 0 generic-term regressions
  • node config/scripts/audit-localization-coverage.mjs --check — 13 allowlisted candidates
  • node config/scripts/verify-localization-extraction.mjs
  • node config/scripts/generate-runtime-required-english-catalog.mjs
  • vitest locale suites — 34 files, 288 tests pass (translation policy es/fr/ja/ko/zh rounds, ko overrides, generic UI terms, frozen keywords, native-chat locales, provider credit balance sparse-catalog contract)

Notes

Two review findings were rejected as repo conventions rather than fixes: the ja half-width 例: (28 existing occurrences) and auto.components.onboarding.AgentStep.showMoreAgents, whose Latin "agents" is deliberately pinned by config/scripts/locale-ko-key-overrides.json.

@coderabbitai

coderabbitai Bot commented Oct 6, 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: 7ffdb4fc-4893-4a8d-8275-fa70d2afd399
📥 Commits

Reviewing files that changed from the base of the PR and between e0a699b34548825e60e621e007134e16e0dd35f6 and 620ecc5.

📒 Files selected for processing (5)
  • 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 skipped from review as they are similar to previous changes (5)
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/es.json

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


📝 Walkthrough

Walkthrough

The translation scan record documents 87 new English keys, 18 changed values, and translations or updates across five locales. The locale catalogs add labels for provider usage, Agent activity controls, Jira assignee selection, CSV editing, and workspace deletion. They also update Gemini CLI, structured-chat, Markdown review-note, and onboarding text.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 620ec

The Japanese CSV indexing status reads unnaturally. This is a limited translation-quality issue that can be corrected before merging or accepted for follow-up.

Architecture Summary

Architecture risk: 🔵 Low · up to e0a69

The change affects 2 systems.

Changed systems: src, config

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 5 changed files map to changed impact.
  • observed — config (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in config/update-translation.txt: Added the 2026-10-05 scan report, documenting its comparison window and gate results, the 87-key delta and 18 changed values, the 11 intentionally untranslated sparse-fallback keys, applied translations and stale-value updates, verification results, and reviewer findings through final sign-off.
  • observed — Modified behavior in src/renderer/src/i18n/locales/es.json: Adds the Spanish label for a provider usage limit.
  • observed — Modified behavior in src/renderer/src/i18n/locales/es.json: Renames the Gemini provider description and changes the account label from “Gemini” to “Gemini CLI (legacy).”
  • observed — Modified behavior in src/renderer/src/i18n/locales/es.json: Updates the structured-chat description to use “desactivado” instead of “Off” and adjusts capitalization in its scope text.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the translation work and the five target locales.
Description check ✅ Passed The description covers the user-facing change, scope, rationale, visual-proof status, and verification results. It explains why the linked issue is not applicable for this recurring translation sweep.…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · 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: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a97a25e-47dd-49b4-89fb-75ec3c2ee1ff
📥 Commits

Reviewing files that changed from the base of the PR and between 9f56170 and e0a699b34548825e60e621e007134e16e0dd35f6.

📒 Files selected for processing (6)
  • config/update-translation.txt
  • 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.

},
"csv": {
"detectingDelimiter": "デリミタを検出中…",
"indexProgress": "CSV をインデックス作成中… {{percent}}%",

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

rg -n '"indexProgress"' src/renderer/src/i18n/locales
sed -n '19014,19024p' src/renderer/src/i18n/locales/ja.json
rg -n -i 'translation|localization|Japanese|日本語' config src/renderer/src/i18n

Repository: stablyai/orca

Length of output: 45402


🏁 Script executed:

set -eu
printf '%s\n' '--- English/current/base locale values ---'
git show e0a699b34548825e60e621e007134e16e0dd35f6:src/renderer/src/i18n/locales/en.json | rg -n -C 2 '"indexProgress"'
git show e0a699b34548825e60e621e007134e16e0dd35f6:src/renderer/src/i18n/locales/ja.json | rg -n -C 2 '"indexProgress"'
git show 9f561703b70409e62e234a346d9228458b6a6af5:src/renderer/src/i18n/locales/ja.json | rg -n -C 2 '"indexProgress"' || true
printf '%s\n' '--- key usage ---'
rg -n -F -- 'csv.indexProgress' src/renderer/src --glob '!i18n/locales/*.json' || test "$?" -eq 1
rg -n -F -- 'indexProgress' src/renderer/src --glob '!i18n/locales/*.json' || test "$?" -eq 1
printf '%s\n' '--- translation guidance ---'
sed -n '1,140p' config/update-translation.txt
sed -n '1,180p' config/scripts/locale-translation-policy.mjs
printf '%s\n' '--- Japanese policy files ---'
rg --files config/scripts | rg 'locale-translation-policy\\.ja|locale-translation-policy\\.mjs'

Repository: stablyai/orca

Length of output: 831


🤖 get_repo_knowledge executed:

get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/conventions

Length of output: 47729


🏁 Script executed:

set -eu
printf '%s\n' '--- base-to-head Japanese locale diff ---'
git diff --unified=3 9f561703b70409e62e234a346d9228458b6a6af5 e0a699b34548825e60e621e007134e16e0dd35f6 -- src/renderer/src/i18n/locales/ja.json | rg -n -C 4 'indexProgress|Indexing CSV|インデックス'
printf '%s\n' '--- complete CSV progress rendering context ---'
sed -n '112,150p' src/renderer/src/components/editor/csv/CsvPagedViewer.tsx
printf '%s\n' '--- translation workflow instructions ---'
sed -n '1,70p' config/update-translation.txt
printf '%s\n' '--- Japanese translation policy file names ---'
rg --files config/scripts | rg 'locale-translation-policy\\.ja|locale-translation-policy\\.mjs' || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 6498


🏁 Script executed:

set -eu
printf '%s\n' '--- Japanese locale index/progress phrasing ---'
rg -n 'インデックス|作成中|索引' src/renderer/src/i18n/locales/ja.json | head -n 50
printf '%s\n' '--- canonical translation policy ---'
sed -n '25,75p' config/i18n-translation-source.md
sed -n '280,305p' config/i18n-translation-source.md
printf '%s\n' '--- exact cited lines ---'
nl -ba src/renderer/src/i18n/locales/en.json | sed -n '1,7p'
nl -ba src/renderer/src/i18n/locales/ja.json | sed -n '19017,19023p'
nl -ba src/renderer/src/components/editor/csv/CsvPagedViewer.tsx | sed -n '132,142p'
nl -ba config/update-translation.txt | sed -n '1,19p'

Repository: stablyai/orca

Length of output: 8262


Use a natural Japanese construction for the indexing status.

CSV をインデックス作成中 is an awkward particle construction. Use CSV のインデックスを作成中 to state that the index is being created for the CSV.

Suggested wording
-    "indexProgress": "CSV をインデックス作成中… {{percent}}%",
+    "indexProgress": "CSV のインデックスを作成中… {{percent}}%",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"indexProgress": "CSV をインデックス作成中… {{percent}}%",
"indexProgress": "CSV のインデックスを作成中… {{percent}}%",

@pullfrog pullfrog 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.

ℹ️ No critical issues — one minor doc correction inline.

Reviewed changes

  • Locale catalogs — es/fr/ja/ko/zh.json gain the 76 new English keys (csv editor, activity thread list + context menu, nested-worktree removal, workspace-delete change checks, Jira assignee field, provider Limit label) plus three stale-value corrections (Gemini CLI legacy copy/label, onboarding arrow spacing), leaving the 11 provider credit-balance keys as intentional sparse fallbacks.
  • Translation tracker — config/update-translation.txt records the Scan 2026-10-05 entry.

I verified independently: all five files parse with no duplicate keys, zero placeholder mismatches against en.json, every added key exists in en.json, provider.extra.usage.section.135d51c19f resolves at the correct path in each locale, and the 11 pinned balance keys remain absent (provider-credit-balance-locales.test.ts passes 11/11). verify-localization-catalog.mjs reports 15269/15280 for all five locales.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

- Applied 76 new keys x5 via apply-translation-delta.mjs (pipeline repaired ja
open->オープン, zh 智能体->代理 xN, ko refreshFailed spacing) + 3 stale updates x5 via
the same repairTranslatedValue gate. Strictly additive: +380 new keys, 0 removed.
- Gates after fix: catalog verify PASS (all five 15268/15279; the 11 omissions are the

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.

This line reports 15268/15279, but verify-localization-catalog.mjs currently prints 15269/15280 for all five locales (matching the PR description). Looks like an off-by-one measured before a key landed.

Delta since last scan (a15a5c8): 87 new en keys plus 18 changed en
values. 11 of the 87 are provider credit-balance keys that
provider-credit-balance-locales.test.ts intentionally keeps absent from
target catalogs (sparse English fallback), so they were left untranslated;
the remaining 76 were translated for all five locales. 15 of the 18
changed values already matched the new English upstream; 3 stale ones
(Gemini CLI legacy copy/label, onboarding arrow spacing) were corrected.

Applied via apply-translation-delta.mjs and the repairTranslatedValue
policy gate (ja open->オープン, zh 智能体->代理, ko spacing). Strictly
additive: +380 locale keys, 0 removed.

Three subagent review rounds (max 4): R1 fixed 11, R2 fixed 3 and
rejected the ja half-width-colon and ko pinned-override findings as repo
conventions, R3 signed off clean on all five locales.

Gates: catalog verify, coverage --check, extraction, runtime-catalog, and
the locale vitest suites (34 files / 288 tests) all pass.
@AmethystLiang
AmethystLiang merged commit 9756dae into main Oct 6, 2026
27 of 29 checks passed
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.

1 participant