Skip to content

fix(i18n): translate 235 missing Japanese desktop strings for Bots setup, Slack, GitHub and Google - #49871

Open
yohangwak wants to merge 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/ja-desktop-i18n-3
Open

yohangwak wants to merge 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/ja-desktop-i18n-3

Conversation

@yohangwak

Copy link
Copy Markdown
Contributor

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

  • Before: 235 keys in en.json had no entry in src/renderer/src/i18n/locales/ja.json and no open maintainer PR covers them, so i18next fell back to English inside otherwise Japanese screens (Bots setup, Slack, GitHub and Google).
  • After: each of those keys has a Japanese value. Values follow the existing 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 の無視対象).
  • Mechanism: new leaves in src/renderer/src/i18n/locales/ja.json, each placed after its nearest en.json sibling 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 upstream repairTranslatedValue policy unchanged.
Key English (shown before) Japanese (after)
bots.access.actsAsYou They act as you on {{computer}}. {{computer}} 上であなたとして操作します。
bots.access.yourComputer your computer 自分のコンピュータ
bots.activity.waitsOnBackground Waiting on its background task バックグラウンドタスクを待っています
bots.apps.addAppsTitle Add apps to {{bot}} {{bot}} にアプリを追加
bots.apps.addedCaption Added 追加済み
bots.apps.addedCount {{count}} added {{count}} 個を追加済み
bots.apps.chip.more More その他
bots.apps.composio.changeKeyTitle Change your Composio key Composio のキーを変更
bots.apps.couldNotConnect Couldn’t connect {{app}} {{app}} を接続できませんでした
bots.apps.custom.name Custom カスタム

Why

These strings sit in screens that are otherwise Japanese, so each English line stands out. The 366 English _one plural keys that ja.json lacks are intentionally not added: Japanese has only the CLDR other category, i18next resolves those keys to the existing _other value for every count, and verify:localization-catalog does 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

  • I manually tested these changes locally — not ticked: the values were checked by the catalog verifier and scripts; the app itself was not run.
  • Automated tests added/updated, or explained why not below: none added, since this only adds catalog values, which the existing catalog verifiers check (placeholder and tag sets, coverage).
  • Every added test fails without this change and avoids the test anti-patterns: no tests added.

On macOS, this branch (2a7dad3) is based on main at 4e43dff:

  • pnpm verify:localization-catalog passes: 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/main passes (29 checks, including format, typecheck, localization coverage, localization catalogs and localization extraction).
  • Each new value keeps the English {{placeholder}} and <tag> set and leading/trailing spaces (script check over all new values).
  • config/scripts/locale-catalog/repair-locale-catalog.mjs --locale ja changes none of the new values (it also changes existing values on main, 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred) — not run locally; pnpm check:changed --base=upstream/main passed (29 checks, including format, typecheck and the localization checks), and CI runs the full suite.

🤖 Generated with Claude Code

…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>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Japanese locale adds strings for bot notifications, setup, GitHub and Slack connections, WSL hosting, item activity, automation, paired servers, and Google account selection. Existing bot, GitHub setup, item activity, and Google sign-in sections also gain labels and states.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 2a7da

This change adds Japanese translations for bot setup, Slack, GitHub, and Google screens, replacing English fallback text. It touches only the Japanese catalog, so the risk to production behavior is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: it adds Japanese translations for 235 missing desktop strings in the Bots setup, Slack, GitHub and Google areas of ja.json. It follows the conventional-commit style an…
Description check Passed The description follows the template closely: it has ELI5, What Changed, Why, Linked Issue (Fixes #49859), Visual Proof (N/A with reason), Testing, Performance, Risk with level, AI Disclosure, Review,…
Linked Issues check Passed Issue #49859 is the only direct linked issue and is open. Its coding requirement for this PR is the 235-key Bots setup, Slack, GitHub, and Google portion. The PR adds Japanese values for these keys in…
Out of Scope Changes check Passed The change set touches only src/renderer/src/i18n/locales/ja.json. The raw summary and PR description state that no existing Japanese values, English strings, application code, tests, or other locales…
Full details: Title check

Explanation

The title names the main change: it adds Japanese translations for 235 missing desktop strings in the Bots setup, Slack, GitHub and Google areas of ja.json. It follows the conventional-commit style and is specific enough for a teammate scanning history. Only the length is high (98 characters), which is slightly long but acceptable.

Full details: Description check

Explanation

The description follows the template closely: it has ELI5, What Changed, Why, Linked Issue (Fixes #49859), Visual Proof (N/A with reason), Testing, Performance, Risk with level, AI Disclosure, Review, Agent skill upstream boundary, Notes and Checklist. The content is specific and explains the before/after, the mechanism and the validation. Gaps: the Testing section leaves the manual test box unticked and says the app was not run, and the local lint, typecheck, test and build commands were not run. The template asks for a manual test or a reason. The description explains that reason, so the check still passes. The 'Review' and 'AI Disclosure' sections are filled in, and the Performance line is completed.

Full details: Linked Issues check

Explanation

Issue #49859 is the only direct linked issue and is open. Its coding requirement for this PR is the 235-key Bots setup, Slack, GitHub, and Google portion. The PR adds Japanese values for these keys in src/renderer/src/i18n/locales/ja.json. The PR description reports desktop ja coverage rising from 21,138 to 21,373 entries, an increase of 235, which matches the issue count. The reviewed change summary (+322/-13 in ja.json) agrees with new leaf values. The 13 removed lines are reported as trailing-comma changes only. The _one plural forms the PR omits are the forms the issue also excludes. Other portions of #49859 are covered by #49863 and #49867, so they are not required here. The 235-key count and the verifier results are author-reported. I did not recount the keys from the diff, but the summary is consistent with the requirement.

Full details: Out of Scope Changes check

Explanation

The change set touches only src/renderer/src/i18n/locales/ja.json. The raw summary and PR description state that no existing Japanese values, English strings, application code, tests, or other locales change. Every added value maps to a key that the issue lists in the Bots setup, Slack, GitHub, and Google area. No unrelated change was identified. The PR description also states that keys already covered by other open maintainer PRs (#45740, #47391) were excluded to avoid duplicates. This is consistent with the issue scope.

  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6a6dac0a-3064-46ae-8d47-486a1a4b914f
Commits

Reviewing files that changed from the base of the PR and between 845867a and 2a7dad3.

Files selected for processing: 1

  • 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; 0 remain after this review.

This branch has not been deployed

No deployments
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.

[Bug]: With the desktop app set to Japanese, 1,157 strings in settings, bots and workspaces show in English

1 participant