Repository navigation
feat: add Chinese and English website pages and language switching - #41
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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./, and preserve the language of direct documentation URLs. The shared static 404 includes both languages and selects by request path when JavaScript is available.previewsblock, retaining top-level static asset configuration. Document separate production and preview commands, both targetingwrangler.worker.jsonc, and preview-specific secret setup./download?lang=en, with no additional GitHub queries. Add canonical and alternate-language metadata forwheelplay.gwo.appand 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 --checkpassed.No production deployment was performed. Advanced documentation linked in the repository may still be Chinese; the English user guide and FAQ note this.