Repository navigation
fix(i18n): translate 235 missing Japanese desktop strings for Bots setup, Slack, GitHub and Google - #49871
fix(i18n): translate 235 missing Japanese desktop strings for Bots setup, Slack, GitHub and Google#49871yohangwak wants to merge 1 commit into
Conversation
…tup, Slack, GitHub and Google Fills ja.json keys that fall back to English today; existing values are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
ELI5
With Orca set to Japanese, parts of the desktop app still show English: Bots setup, Slack, GitHub and Google. This PR adds Japanese for 235 of those strings (part 3 of 3). Only the Japanese word list changes.
What Changed
en.jsonhad no entry insrc/renderer/src/i18n/locales/ja.jsonand no open maintainer PR covers them, so i18next fell back to English inside otherwise Japanese screens (Bots setup, Slack, GitHub and Google).ja.json: です/ます sentences, noun-form labels without 。, full-width 、。?()「」, a space between Japanese and Latin text, "Agent" and "Bot" in Latin script, and its established terms (サインイン, デフォルト, オートメーション, ブラウザ, コンピュータ, Git の無視対象).src/renderer/src/i18n/locales/ja.json, each placed after its nearesten.jsonsibling that already exists in the file (diff +322 −13; every removed line only gains a trailing comma). No existing value, English string, code or other locale changes. Every value passes the upstreamrepairTranslatedValuepolicy unchanged.bots.access.actsAsYoubots.access.yourComputerbots.activity.waitsOnBackgroundbots.apps.addAppsTitlebots.apps.addedCaptionbots.apps.addedCountbots.apps.chip.morebots.apps.composio.changeKeyTitlebots.apps.couldNotConnectbots.apps.custom.nameWhy
These strings sit in screens that are otherwise Japanese, so each English line stands out. The 366 English
_oneplural keys thatja.jsonlacks are intentionally not added: Japanese has only the CLDRothercategory, i18next resolves those keys to the existing_othervalue for every count, andverify:localization-catalogdoes not require them.Linked Issue
Fixes #49859
This PR covers the Bots setup, Slack, GitHub and Google part of the issue; the other 2 Japanese PRs cover the rest, with no key in two PRs.
Visual Proof
N/A — only catalog strings change; there is no layout, styling or interaction change. The table above shows what the affected labels render as with the interface set to 日本語.
Testing
On macOS, this branch (2a7dad3) is based on
mainat 4e43dff:pnpm verify:localization-catalogpasses: desktop ja coverage goes from 21,138 to 21,373 entries (English has 25,069 keys). It fails with an interpolation mismatch when one{{placeholder}}in a new value is broken (checked as a positive control).pnpm check:changed --base=upstream/mainpasses (29 checks, including format, typecheck, localization coverage, localization catalogs and localization extraction).{{placeholder}}and<tag>set and leading/trailing spaces (script check over all new values).config/scripts/locale-catalog/repair-locale-catalog.mjs --locale jachanges none of the new values (it also changes existing values onmain, which this PR leaves alone).Performance
None, because only the Japanese desktop catalog grows (about 18 KB). It is loaded only when Japanese is selected; there is no new code path, I/O, polling or subprocess work.
Risk
Level: Low
The worst case is a Japanese label that reads wrong on its screen. No behavior, saved data, settings, paired phones or SSH hosts are touched; the catalog is the same on macOS, Linux and Windows. To back out, do a plain revert.
AI Disclosure
Translated with Claude Opus 5.5 (high effort) in Claude Code. Opus chose every Japanese value from the English source and the screen each string appears on, reusing the terms already in the desktop ja.json.
Review
AI review summary: copy-only change to one locale catalog. Cross-platform: the catalog is shared by macOS, Linux and Windows. SSH/remote: no change. Agent compatibility: no change. Performance: data only. UI: copy only, no layout change; longer values were compared against the components that render them. Security: no change.
Agent skill upstream boundary
Notes
Keys that open maintainer PRs already translate (#45740 bot screens, #47391 bot templates and skills, and one key carried by other open maintainer branches) are left out so the PRs don't write the same lines. This is PR 3 of 3 for Japanese; each one adds different keys on top of the same
main, so they can merge in any order.Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — not run locally;pnpm check:changed --base=upstream/mainpassed (29 checks, including format, typecheck and the localization checks), and CI runs the full suite.🤖 Generated with Claude Code