Skip to content

feat: add Traditional Chinese (zh-TW) support and translate docs#1

Open
linboso wants to merge 5 commits intomainfrom
jules-17366450050200729359-173e183c
Open

feat: add Traditional Chinese (zh-TW) support and translate docs#1
linboso wants to merge 5 commits intomainfrom
jules-17366450050200729359-173e183c

Conversation

@linboso
Copy link
Copy Markdown

@linboso linboso commented Mar 24, 2026

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) using opencc-js. Added proper zh-TW type to generation scripts, and handled UI language toggles gracefully. Also translated internal localization messages. Did not translate SKILL.md as it is an English file.


PR created automatically by Jules for task 17366450050200729359 started by @linboso

* 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>
@google-labs-jules
Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

linboso pushed a commit that referenced this pull request Mar 25, 2026
…-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>
google-labs-jules Bot and others added 4 commits March 25, 2026 03:10
* 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>
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