Skip to content

feat: add Chinese and English website pages and language switching - #41

Merged
fython merged 2 commits into
mainfrom
feat/website-i18n
Oct 23, 2026
Merged

fython merged 2 commits into
mainfrom
feat/website-i18n

Conversation

@fython

@fython fython commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Visitors can now use WheelPlay’s website in Chinese or English. Existing Chinese URLs stay available; /en/, /en/docs/, and /en/docs/faq/ provide a fully rendered English homepage, user guide, and FAQ.

  • Share homepage components through a typed translation catalog. Translate navigation, illustrations, accessibility labels, theme controls, metadata, and download errors. Both languages’ documentation remains in Markdown.
  • Add corresponding-page language links that work without JavaScript. Remember explicit language choices when storage is available, apply the saved English preference on return to /, and preserve the language of direct documentation URLs. The shared static 404 includes both languages and selects by request path when JavaScript is available.
  • Enable Cloudflare branch previews with an explicit empty previews block, retaining top-level static asset configuration. Document separate production and preview commands, both targeting wrangler.worker.jsonc, and preview-specific secret setup.
  • Keep translated download errors on the same metadata cache via /download?lang=en, with no additional GitHub queries. Add canonical and alternate-language metadata for wheelplay.gwo.app and responsive styles for longer English copy.

Validation: Astro check passed with no diagnostics; build and all 33 tests passed (8 production artifact checks and 25 download/cache tests). Chromium checks covered six language routes at widths from 320 to 1440 px, all preview tabs, keyboard interaction, language switching and persistence, explicit URL handling, themes, FAQ, English 404, disabled JavaScript, and blocked storage. Workers deployment dry-run, Pages Functions compilation, and git diff --check passed.

No production deployment was performed. Advanced documentation linked in the repository may still be Chinese; the English user guide and FAQ note this.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
246d1f7 2026-10-23T13:55:48.238Z View logs ↗
  • Build: Failed ❌

View logs ↗
168eba1 2026-10-23T13:50:54.138Z View logs ↗

@fython
fython merged commit 2f453f6 into main Oct 23, 2026
2 of 3 checks passed
@fython
fython deleted the feat/website-i18n branch October 23, 2026 13:57
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