Skip to content

Conversation

Whbbit1999
Copy link

@Whbbit1999 Whbbit1999 commented Sep 26, 2025

The current Chinese version of typed-routes is somewhat outdated. This commit synchronizes the translation of this file with the latest content from the English version.(^▽^)

Summary by CodeRabbit

  • Documentation
    • Updated the typed routes guide with clearer, manual configuration steps and a TypeScript example.
    • Replaced the experimental section with a detailed, step-by-step workflow and refreshed visuals.
    • Added guidance and a tip recommending automatic generation via unplugin-vue-router.
    • Improved headings and added a closing tip block to aid discoverability and comprehension.

The current Chinese version of typed-routes is somewhat outdated. This
commit synchronizes the translation of this file with the latest content
from the English version.
Copy link

netlify bot commented Sep 26, 2025

Deploy Preview for vue-router ready!

Name Link
🔨 Latest commit ed35db3
🔍 Latest deploy log https://app.netlify.com/projects/vue-router/deploys/68d5e4860aa2dc00086fad3d
😎 Deploy Preview https://deploy-preview-2564--vue-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 87 (🔴 down 3 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

coderabbitai bot commented Sep 26, 2025

Walkthrough

Revises the Chinese advanced guide on typed routes to replace an experimental section with a manual TypeScript configuration example. Adds an interface and Vue Router type augmentation in the sample, updates headings/imagery, and includes a note recommending unplugin-vue-router for automatic generation.

Changes

Cohort / File(s) Summary
Docs: Typed routes manual config
packages/docs/zh/guide/advanced/typed-routes.md
Replaced experimental/type-title content with a manual TypeScript setup for typed routes. Added sample RouteNamedMap interface and vue-router TypesConfig augmentation. Updated headings, images, and added a tip recommending unplugin-vue-router.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my whiskers, nibble bytes of lore,
Typed routes mapped neatly—no guessing anymore.
With names declared and paths aligned,
My paws tap keys, the types refined.
Hop, compile, and off I scoot—
A safer trail for every route! 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title “docs(zh/typed-routes): Sync translation of typed-routes page” succinctly describes the primary change of updating the Chinese translation of the typed-routes documentation to match the English source and follows the conventional prefix format for documentation updates.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cf4e369 and ed35db3.

📒 Files selected for processing (1)
  • packages/docs/zh/guide/advanced/typed-routes.md (1 hunks)
🔇 Additional comments (1)
packages/docs/zh/guide/advanced/typed-routes.md (1)

5-76: Translation in sync with the latest typed routes guidance

The updated narrative, code sample, and closing tip all accurately mirror the current English documentation and read smoothly in Chinese—nice work keeping everything aligned.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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