Skip to content

fix(i18n): translate bot template copy into Korean - #47241

Merged
AmoabaKelvin merged 3 commits into
stablyai:mainfrom
ahn0min:i18n/ko-bot-templates
Nov 23, 2026
Merged

AmoabaKelvin merged 3 commits into
stablyai:mainfrom
ahn0min:i18n/ko-bot-templates

Conversation

@ahn0min

@ahn0min ahn0min commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

#46255 made the built-in bot templates translatable: their names, descriptions, example lines and the skills they come with. Korean has no entries for those keys yet, so with Korean selected the template pages still show English, on the desktop app and on the phone. This PR adds the Korean to both.

What Changed

Before: neither ko.json has entries for the templates under bots.templates.<template id> or for bots.templateSkills. With the UI language set to Korean, the Templates dialog, a template's detail page, the "comes with" list and the name New bot proposes all fall back to English. The phone's template sheet and template detail do the same.

After: all 272 template keys that #46255 added to en.json have a Korean value, in the desktop catalog and in the mobile catalog: 245 under bots.templates.<template id> for the 24 templates and 27 under bots.templateSkills (13 skill names, 13 skill lines and the name-with-folder pattern). Coverage for these keys in Korean goes from 0 of 272 to 272 of 272 in each catalog. Both catalogs get the same 272 values, since #46255 gives them the same keys and the same English.

Mechanism: catalog entries only. The desktop entries went in through config/scripts/locale-catalog/apply-translation-delta.mjs, which checks placeholders and applies the Korean term policy. The policy leaves all 272 values as written. That script only writes the desktop catalog, so the mobile entries were placed at the position mobile/src/i18n/locales/en.json has them, with the same values. In each file the diff is 422 added lines and no removed lines, and no existing ko.json value changes.

Terminology follows the existing Korean catalog: 봇 / 에이전트 / 워크스페이스 / 리포지토리, 합니다 form. Product names and commands stay Latin. bots.templateSkills.nameWithFolder stays {{name}} ({{folder}}), so a translated skill name keeps its folder name beside it, as #46255 intends.

Why

#46255 fills Simplified Chinese only, so every other language still shows the templates in English. This PR does the same for Korean and changes nothing else, so it stays a pure catalog addition that is easy to review and revert. Desktop and mobile are in one PR because they share the keys and the values: splitting them would leave the phone in English for the same templates.

Linked Issue

Fixes #47240

Visual Proof

Bot templates dialog with the UI language set to Korean, before (main) and after.

before
after

The remaining English in the dialog (its title, the search box, some category names, "Use template…", "What it does first", "Comes with") comes from other bots.* keys that are not part of this PR. The phone is not pictured: it reads the same keys and gets the same values.

Testing

  • Compared the key set with en.json in each catalog: the 272 template keys in en.json and in ko.json are the same keys in the same order. They hold 259 distinct English strings, and the same English gets the same Korean wherever it appears.

  • Per key, compared the English and the Korean for {{variables}}, <tags>, backticks and code spans, newline count, and leading and trailing spaces: all 272 match in both catalogs.

  • Parsed both ko.json files, confirmed each still round-trips through JSON.stringify(value, null, 2) plus one trailing newline, and that the existing entries are unchanged: 21,822 desktop and 4,020 mobile.

  • pnpm check:changed passes on macOS (31 checks, including localization catalogs, mobile localization and localization extraction). Desktop ko.json coverage goes from 21,822 to 22,094 of 24,395, mobile from 4,020 to 4,292 of 6,607.

  • Rendered the Templates dialog in Korean before and after with a local component fixture that is not part of this PR (screenshots above). I did not run the full desktop app or the phone app.

  • 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

Catalog entries only, loaded only when Korean is selected (desktop fetches ko.json?url in i18n.ts, mobile imports it lazily in bundled-locale-catalogs.ts). Measured JSON.parse median over 50 runs after warm-up, main vs this branch:

  • Desktop ko.json: 1654.5 KB → 1679.8 KB (+25.3 KB, +1.5%; gzip 429.2 → 435.5 KB), parse 2.92 → 3.01 ms.
  • Mobile ko.json: 278.5 KB → 303.7 KB (+25.2 KB; gzip 67.7 → 73.9 KB), parse 0.43 → 0.49 ms.

No code changes, no new I/O, polling or subprocesses.

Risk

Level: Low

Catalog strings only, in two files. The worst case is an awkward Korean sentence on a template page. A plain revert backs it out.

AI Disclosure

Claude Code was used throughout: Claude Opus 5.5 drafted the Korean copy, and Claude Fable 5.2 applied it to the catalogs, ran the checks and wrote this description.

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

Follow-up to #46255. Mobile: the mobile catalog gets the same 272 keys and values as desktop.

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)

🤖 Generated with Claude Code

Adds Korean for the built-in bot templates: 245 entries under
bots.templates.<template> for the 24 templates and 27 under
bots.templateSkills. The desktop and mobile catalogs get the same 272
values. Key order follows en.json in each catalog. No existing ko.json
value changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The desktop and mobile Korean locale catalogs add translations for bot templates and template skills. Template translations include names, descriptions, setup prompts, watched sources, reporting behavior, examples, and applicable schedules or event triggers.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 59985

This adds Korean text for the built-in bot templates on desktop and mobile, which previously showed English. It is a catalog-only change with no behavior or performance impact, and no actionable merge risk remains.

Pre-merge checks: Passed 4

Full details: Title check

Explanation

The title "fix(i18n): translate bot template copy into Korean" matches the main change: Korean catalog entries for the built-in bot-template keys in both desktop and mobile ko.json files. It is specific and concise. Its "fix" prefix is a minor mismatch, since the change adds missing translations rather than fixing a defect, but this does not make the title misleading.

Full details: Linked Issues check

Explanation

[#47240] Requires Korean values for the template keys that #46255 added to both catalogs: 245 under bots.templates.<template id> and 27 under bots.templateSkills (272 keys per catalog). The whole-PR summary for src/renderer/src/i18n/locales/ko.json and mobile/src/i18n/locales/ko.json reports +422/-0 in each file. The summary describes Korean entries for template names, descriptions, examples, schedules, events, and skill names and descriptions. This matches the PR description, which reports 272 of 272 coverage in each catalog after per-key placeholder and formatting checks. Limit: the changed blobs and the text diff could not be read at the reviewed head, so the exact key count is established from the summary and PR description, not from a direct read. A follow-up commit reportedly changed two Korean terms (리포지토리 to 저장소, 머지 to 병합) in both catalogs. This does not affect key coverage, and the current head wording governs. No coding requirement of #47240 is shown to be unmet. The issue has no automated test requirement beyond catalog content.

Full details: Out of Scope Changes check

Explanation

The whole-PR summaries and PR description show changes limited to Korean catalog entries in the desktop and mobile ko.json files. The follow-up commit changes Korean wording in the same two catalogs only. Both files are required by #47240. The full changed-file list was not inspected against the merge base because the diff was unavailable, so a change outside these two catalogs cannot be fully excluded. No unrelated change is demonstrated. The PR description still states the old terminology (리포지토리, 머지); this is a stale description detail, not an out-of-scope change.

Full details: Description check

Explanation

The description is thorough and follows the repository template closely. It covers ELI5, What Changed, Why, Linked Issue (Fixes #47240), Visual Proof with before/after images, Testing with checked boxes and reproducible steps, Performance with a measured justification, Risk with level Low and a revert path, AI Disclosure, the upstream boundary checkbox, Notes, and the Checklist. Minor gaps: the Testing section states it did not run the full desktop or phone app, and the Risk section does not explicitly mention cross-platform or SSH impact beyond stating catalog-only scope. These are non-critical and do not block approval.

  • 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: 43dbc4dc-9a41-40e3-8c79-c2236ce393c2
Commits

Reviewing files that changed from the base of the PR and between 1a37601 and 5998559.

Files selected for processing: 2

  • mobile/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ko.json
Files skipped from review as they are similar to previous changes: 2

  • mobile/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ko.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.

Check name Status Explanation
Title check Passed The title "fix(i18n): translate bot template copy into Korean" matches the main change: Korean catalog entries for the built-in bot-template keys in both desktop and mobile ko.json files. It is specif…
Linked Issues check Passed [#47240] Requires Korean values for the template keys that #46255 added to both catalogs: 245 under bots.templates. and 27 under bots.templateSkills (272 keys per catalog). The whole-PR s…
Out of Scope Changes check Passed The whole-PR summaries and PR description show changes limited to Korean catalog entries in the desktop and mobile ko.json files. The follow-up commit changes Korean wording in the same two catalogs o…
Description check Passed The description is thorough and follows the repository template closely. It covers ELI5, What Changed, Why, Linked Issue (Fixes #47240), Visual Proof with before/after images, Testing with checked box…

@AmethystLiang

Copy link
Copy Markdown
Contributor

reviewing this now

Match the existing Korean catalog, which uses 저장소 for repository and
병합 for merge, and pins both in the Korean overrides.
@AmoabaKelvin

Copy link
Copy Markdown
Collaborator

Thanks @ahn0min, this reads well. I pushed one commit on top: the template copy now says 저장소 and 병합 instead of 리포지토리 and 머지, which is what the rest of the Korean catalog and the Korean overrides use. Same change in both catalogs, and the catalog checks still pass.

The follow-up template read as questions about you rather than to you, and
the release-notes line used 수정 for both the fixed group and editing.
@nwparker

Copy link
Copy Markdown
Contributor

Something to know before this merges. With the Korean bots.templates.<id>.name values, a bot made from a template is proposed under its Korean name (for example PR 리뷰). botFolderName (src/shared/bot-types.ts) keeps only a-z and 0-9, so that bot's home folder becomes pr, or bot, then bot-2 and so on. On main the English name gives pull-request-review.

Two ways to keep folder names readable:

  • Leave the template name keys untranslated for now.
  • Name the folder from the template's English name when the bot still has the template's proposed name. A broader fallback would also change folder names for custom names like Straße.

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]: Bot templates stay in English with Korean selected (desktop and mobile)

4 participants