Skip to content

fix(i18n): translate the bot strings #45740 leaves out in Japanese, Korean and Traditional Chinese - #46318

Merged
AmoabaKelvin merged 1 commit into
mainfrom
n21-l10n-cjk
Nov 21, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
n21-l10n-cjk

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

With Japanese, Korean or Traditional Chinese selected, part of the Bots UI stays in English even after #45740. These are bot strings that #45740 doesn't include, mostly ones added to main after it branched. This PR translates them.

Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1135 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1098

What Changed

Before: 288 bot keys have no entry in ja.json, ko.json or zh-Hant.json on main and no entry in #45740's head either. The same 288 keys are missing in all three locales. These include the Bots feature tour (featureTips.botsTeammate.*, 84 keys), new bots.* keys (items, access, apps, upcoming, groups, new bot, settings view), settings.bots.* skills and look-around, and the bot strings stored outside those prefixes (components.native-chat.composer.bot*, settings.shortcuts.groups.bots, settings.sharedLinks.keywordBots, keybindings.group.bots, automations.runFailures.botProviderErrorNotSaved).

After: all 288 keys are filled in each of the three locales. Once #45740 lands too, no bot keys are missing in ja, ko or zh-Hant. Full coverage needs #45740 merged: this PR only adds the keys it doesn't have, and changes no value that #45740 adds or that main already has.

Mechanism: the same path #45750 used. Strings go in through config/scripts/locale-catalog/apply-translation-delta.mjs, which checks placeholders and applies each locale's term policy. In ja and ko the generic policy turns "Next" into 次へ/다음 (a button), but the Bots label marks the next run time. So bots.automations.next gets ja 次回 and ko 다음 실행 in locale-key-overrides.mjs, next to the existing zh entry.

Terminology follows #45740 and the existing catalog in each locale: ja ボット / Agent / ワークスペース / コネクター, polite form; ko 봇 / 에이전트 / 워크스페이스 / 커넥터, 합니다/하세요; zh-Hant 機器人 / 代理程式 / 工作區 / 連接器 / 評論, 你. Product names stay Latin. Placeholders, tags and plural keys are kept.

Catalog sizes: ja 1,722,238 → 1,742,162 bytes, ko 1,442,458 → 1,460,742, zh-Hant 1,244,016 → 1,260,278.

Why

#45740 already translates the bulk of the Bots UI for every locale. Translating those keys again would duplicate team work and conflict with it, so this PR fills only the gap. Simplified Chinese is left out for now: #46255 rewrites about 1,220 zh Bots values and changes the word for "item" (条目 vs 事项), and that needs a decision first.

Linked Issue

Refs #45646

Visual Proof

Bots feature tour fixtures with the UI language set, before (main) and after.

Japanese, items page

Korean, group chat page

Traditional Chinese, group chat page

The remaining English in the items page ("Started", "Marked … done") comes from bots.items.chat.* keys, which are part of #45740.

Testing

Reproduced by listing every en key whose path names a bot that is missing from each locale on main and from #45740's head: 288 per locale. Translated each locale in three chunks, using hints from the catalog's existing renderings of the same English and the already-translated sibling keys as the glossary. A second pass compared every string against the English. It found 5 fixes, which I applied: ja Agent term ×2 and the "More" menu, ko PR-ready wording, zh-Hant 粉紅色. I rejected 4: zh-Hant 留言 for "comment", because the Bots catalog uses 評論; and "Home" → 首頁, because zh-Hant keeps "Home" as #45740 does for bots.hover.openHome. After the change the recount shows 0 gap keys in each locale. pnpm verify:localization-catalogs and pnpm check:changed pass on macOS. I spot-checked fixtures in all three locales: the tour's items and group pages, BotItemPane:asking and BotSettingsView:agent.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below: catalog entries only; project policy excludes copy tests
  • Every added test fails without this change and avoids the test anti-patterns

Performance

None, because this only adds catalog entries (about 16–20 KB per locale), and the catalogs stay lazy-loaded per language.

Risk

Level: Low

Catalog strings and one key override. The worst case is an awkward translation on a Bots screen in ja, ko or zh-Hant. #45740 touches the same files but different keys, so whichever lands second needs a mechanical rebase. A plain revert backs it out.

AI Disclosure

Review

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

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Mobile catalogs aren't touched (#45740 covers mobile bot keys).

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)

@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Japanese, Korean, and Traditional Chinese locales add bot-related translations for discovery, automation, scheduling, setup, chat, items, and settings. The locale override adds Japanese and Korean translations for the next automation label. The supplied changes show localization updates and no implementation behavior changes.

Merge Risk: Minimal · up to 420cc

This adds Japanese, Korean and Traditional Chinese bot translations and one override. It has no runtime behavior change and no identified user-facing risk, so it is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: it fills bot translations that #45740 leaves out, in Japanese, Korean and Traditional Chinese. The changeset adds 288 bot keys to ja.json, ko.json and zh-Hant.json and one …
Description check Passed The description follows the repository template. It covers ELI5, What Changed (before and after, mechanism), Why, Linked Issue (Refs #45646, not 'Fixes #'), Visual Proof with screenshots, Testing with…
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.
Full details: Title check

Explanation

The title names the change: it fills bot translations that #45740 leaves out, in Japanese, Korean and Traditional Chinese. The changeset adds 288 bot keys to ja.json, ko.json and zh-Hant.json and one override for bots.automations.next. The title's type prefix 'fix(i18n):' fits a localization gap fill. It is long at 98 characters but still specific.

Full details: Description check

Explanation

The description follows the repository template. It covers ELI5, What Changed (before and after, mechanism), Why, Linked Issue (Refs #45646, not 'Fixes #'), Visual Proof with screenshots, Testing with checkboxes, Performance, Risk with level Low, Agent skill upstream boundary, Notes and Checklist. Two sections are empty: AI Disclosure is blank, and the Review heading has no content. The Linked Issue uses 'Refs' where the template asks for an actual issue link. The template says 'Refs is not sufficient' for outside contributors, so the author should confirm contributor status or link a real issue. The Performance line is complete. The Testing section is detailed.

Resolution

Optional: fill in the empty AI Disclosure section (or mark it N/A if the author is a StablyAI team member). Confirm that the 'Refs #45646' link satisfies the template's linked-issue rule for this contributor, or change it to a 'Fixes #' link.

  • 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: 3088b7be-6fe6-402d-8c82-a870a3c767bd
Commits

Reviewing files that changed from the base of the PR and between 99aba33 and 420cc80.

Files selected for processing: 4

  • config/scripts/locale-catalog/locale-key-overrides.mjs
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh-Hant.json

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

@AmoabaKelvin
AmoabaKelvin merged commit 8879110 into main Nov 21, 2026
56 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