Repository navigation
Conversation
|
The following comment was made by an LLM, it may be inaccurate: |
There was a problem hiding this comment.
This looks good to merge as is. The two dictionaries have exactly the same keys as en.ts and keep the {{time}} placeholder. Registering them with () => import(...) is the same pattern the other built-in extensions use for zh/zht, and the SDK's Catalog type accepts it. I imported the extension with Bun: both Chinese catalogs load, and bun run typecheck in packages/gui-extensions passes. I couldn't open the pairing screen in the desktop app here, so a quick screenshot of Settings → Pairing in 中文 would help confirm how it looks. The wording fits each region (二维码 in Simplified, QR 碼 and 端對端 in Traditional), but a native-speaker review is still worthwhile.
The public API is unchanged: this only adds translation files to a built-in extension.
Related: #53858
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
42cced4 to
38eb70a
Compare
…ining built-in plugins The pairing, btw, goal, sources and microsoft-office built-in GUI plugins were still shipping English-only copy. Register a builtinCatalog for each with zh (Simplified Chinese) and zht (Traditional Chinese) catalogs, the same way the other built-in plugins register their locales. Terminology: - device -> 设备 / 裝置 - server -> 服务器 / 伺服器 - internet -> 互联网 / 網際網路 - end-to-end encrypted tunnel -> 端到端加密隧道 / 端對端加密通道 - remote access -> 远程访问 / 遠端存取 - slide -> 幻灯片 / 投影片 The .one / .other plural pairs use the same wording in both locales, as Chinese has no plural distinction. Co-Authored-By: Claude Code <[email protected]>
38eb70a to
18c2817
Compare
The built-in GUI plugins
pairing,btw,goal,sourcesandmicrosoft-office(packages/gui-plugins/src/) shipped in #55306 with English-only copy. Add the Simplified and Traditional Chinese dictionaries following the same shape used by sibling plugins (updater,ssh,debug, etc.), and registerzh/zhtas lazy locales inindex.tsso they activate whenever the host app resolveszhorzhtas the active locale.Issue for this PR
no
Type of change
What does this PR do?
Translated the pairing, btw, goal, sources and microsoft-office built-in GUI plugins.
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
Checked the Chinese translation text; no errors found. The locale registration follows the same pattern as other sibling plugins.
Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.
Added by the opencode bot (AI-generated).
Related: #53858
🤖 Generated with Claude Code