Skip to content

Conversation

@MelbourneDeveloper
Copy link
Owner

@MelbourneDeveloper MelbourneDeveloper commented Jan 17, 2026

TLDR;

Complete Chinese website localization: READMEs, website, API docs, doc comments

What Does This Do?

  • Adds README_zh.md for all packages
  • Full Chinese website with docs, blog, API reference
  • Chinese doc links in Dart source (React, WebSocket APIs)
  • i18n infrastructure with language switcher

Brief Details?

  • 97 files, +10k lines
  • Website: zh/ routes, navigation, Playwright tests
  • Packages: bilingual READMEs, Chinese API doc comments linking to zh-hans.react.dev and MDN zh-CN

How Do The Tests Prove The Change Works?

  • website/tests/chinese-navigation.spec.js - Chinese nav
  • website/tests/language.spec.js - Language switching
  • All existing tests pass

MelbourneDeveloper and others added 26 commits January 17, 2026 06:42
- Fix internal links in getting-started.md, dart-to-js.md, js-interop.md
- Add zh/api package directories to .gitignore
- Add shouldSkipFile helper to skip sidebar files consistently
- Filter out sidebar files in subdirectory processing too
- Standardize Chinese doc link format in children.dart
- Make logo link language-aware (links to /zh/ for Chinese)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- reducer_hook.dart: useReducer links
- special_components.dart: Fragment, Suspense, StrictMode, forwardRef, memo, lazy
- react_dom.dart: createRoot, hydrateRoot, createPortal, flushSync, Portal
- synthetic_event.dart: SyntheticEvent

All links now point to react.dev with Chinese zh-hans.react.dev equivalents.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- WebSocketReadyState: added zh-CN MDN link
- CloseEventData: added zh-CN MDN link

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ClipboardEvent, KeyboardEvent, CompositionEvent, FocusEvent,
MouseEvent, DragEvent, PointerEvent, TouchEvent, TransitionEvent,
AnimationEvent, UIEvent, WheelEvent, InputEvent

All MDN links now have Chinese zh-CN equivalents.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Move introducing-dart-node from /blog/ to /zh/blog/
- Fix Chinese MDN link text to use native format
- Update eleventy config for Chinese blog support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MelbourneDeveloper MelbourneDeveloper changed the title Add Chinese (zh) localization Add Chinese (zh) Website Localization Jan 17, 2026
@MelbourneDeveloper MelbourneDeveloper changed the title Add Chinese (zh) Website Localization Add Mandarin (zh) Website Localization Jan 17, 2026
MelbourneDeveloper and others added 2 commits January 17, 2026 12:35
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MelbourneDeveloper MelbourneDeveloper merged commit 6d17895 into main Jan 17, 2026
2 checks passed
@MelbourneDeveloper MelbourneDeveloper deleted the mandarin branch January 17, 2026 03:51
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.

2 participants