feat: add Traditional Chinese (zh-TW) support and translate docs#1
feat: add Traditional Chinese (zh-TW) support and translate docs#1
Conversation
* Added zh-TW locale to i18n system, ui toggles and system prompts. * Translated markdown (.md) and JSON (.json) docs from Simplified Chinese to Traditional Chinese using opencc-js. * SKILL.md remains unchanged as it is in English and should not be translated. Co-authored-by: linboso <31940520+linboso@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
…-MAIC#235) * fix: improve whiteboard UX with bounded canvas, toolbar cleanup, and history fixes - Refactor canvas to bounded viewport with visible white rectangle that moves with pan/zoom - Add reset view button in toolbar with fade animation (replaces in-canvas overlay) - Enable always-on pan (no toggle needed) - Add pan boundary clamping to prevent canvas from going too far offscreen - Separate autoFit transform from pan/zoom transform for cleaner architecture - Move history panel to popover anchored to history button - Save current content before restore to prevent data loss - Fix snapshot deduplication to check all history entries (not just last) - Remove dead code: restoredKey mechanism, zoomHint i18n keys, zoom hint overlay Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: simplify whiteboard history labels to sequential numbering Replace descriptive snapshot labels (beforeClear, beforeAIClear, beforeRestore) with simple #1, THU-MAIC#2, ... numbering by creation order. Remove label field from WhiteboardSnapshot type and unused i18n keys. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: restructure canvas layers to fix viewport clipping The viewport was the same size as the bounded canvas with overflow-hidden, causing panning to clip at the viewport edge instead of the workspace edge. - Viewport now fills the workspace (w-full h-full), no overflow-hidden - Outer container is the sole clip boundary - Bounded canvas centered via computed position with transformOrigin: 0 0 - Pan boundaries now account for zoom level - Zoom toward cursor instead of canvas center - Pan drag accounts for both containerScale and viewZoom - Removed unused isViewModified from WhiteboardCanvasHandle Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: remove autoFit transform, render elements at raw coordinates Remove the autoFitTransform that silently scaled content to fit within the fixed canvas. Elements now render at their raw coordinates and can overflow the white canvas background into transparent space. Users navigate with pan/zoom instead of relying on auto-shrink. - Remove autoFitTransform computation and all bounds calculation helpers - Remove overflow-hidden from bounded canvas so elements can spill out - Remove content transform layer (elements render directly) - Clean up unused imports (getElementRange, PPTLineElement) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Translated `skills/openmaic/SKILL.md` (and reference files) into Traditional Chinese. * Expanded locale support to additional UI components (`quiz-view`, `agent-bar`, etc.) to properly toggle using `zh-TW`. * Ensured no testing scripts or intermediate files remain committed. Co-authored-by: linboso <31940520+linboso@users.noreply.github.com>
* Fixed `app/page.tsx` language dropdown to include "繁體中文" instead of dropping it * Handled more `zh-CN` explicit checks to properly map to `zh-TW` as well in `asr-settings`, `audio-settings`, `agent-bar`, `quiz-view` and API routes. Co-authored-by: linboso <31940520+linboso@users.noreply.github.com>
* Switched `defaultLocale` from `'zh-CN'` to `'zh-TW'` in `lib/i18n/types.ts` * Updated the `language` default on the homepage generation form (`app/page.tsx`) to `'zh-TW'` Co-authored-by: linboso <31940520+linboso@users.noreply.github.com>
* Added "繁體中文" (zh-TW) to the `Header` component's language toggle dropdown. * Replaced the previous explicit `zh-CN`/`en-US` toggle with a comprehensive three-option list. Co-authored-by: linboso <31940520+linboso@users.noreply.github.com>
Added full support for Traditional Chinese (
zh-TW) localization.Translated documentation files (
README.md,README-zh.md,community/feishu.md,lib/pdf/README.md) from Simplified Chinese to Traditional Chinese (Taiwan variant) usingopencc-js. Added properzh-TWtype to generation scripts, and handled UI language toggles gracefully. Also translated internal localization messages. Did not translateSKILL.mdas it is an English file.PR created automatically by Jules for task 17366450050200729359 started by @linboso