Repository navigation
fix(i18n): translate bot template copy into Korean - #47241
Conversation
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>
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
|
reviewing this now |
Match the existing Korean catalog, which uses 저장소 for repository and 병합 for merge, and pins both in the Korean overrides.
|
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.
|
Something to know before this merges. With the Korean Two ways to keep folder names readable:
|
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.jsonhas entries for the templates underbots.templates.<template id>or forbots.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.jsonhave a Korean value, in the desktop catalog and in the mobile catalog: 245 underbots.templates.<template id>for the 24 templates and 27 underbots.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 positionmobile/src/i18n/locales/en.jsonhas them, with the same values. In each file the diff is 422 added lines and no removed lines, and no existingko.jsonvalue changes.Terminology follows the existing Korean catalog: 봇 / 에이전트 / 워크스페이스 / 리포지토리, 합니다 form. Product names and commands stay Latin.
bots.templateSkills.nameWithFolderstays{{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.
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.jsonin each catalog: the 272 template keys inen.jsonand inko.jsonare 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.jsonfiles, confirmed each still round-trips throughJSON.stringify(value, null, 2)plus one trailing newline, and that the existing entries are unchanged: 21,822 desktop and 4,020 mobile.pnpm check:changedpasses on macOS (31 checks, including localization catalogs, mobile localization and localization extraction). Desktopko.jsoncoverage 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?urlini18n.ts, mobile imports it lazily inbundled-locale-catalogs.ts). MeasuredJSON.parsemedian over 50 runs after warm-up, main vs this branch: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.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
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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)🤖 Generated with Claude Code