Skip to content

Conversation

@awxiaoxian2020
Copy link
Member

closing #22

This update introduces localization mappings for sidebar display text, allowing for titles and summaries to be presented in Chinese. The changes include a new `sidebarI18n` object for managing translations and modifications to the navigation generation logic to utilize localized titles and summaries while maintaining stable English-based IDs.
This change refactors the sidebar localization logic by moving the localization mappings from the main script to a dedicated `sidebarLocales.js` module. The navigation generation logic has been updated to utilize this new module, improving code organization and maintainability.
@vercel
Copy link

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ts-zh-docs Ready Ready Preview, Comment Jan 8, 2026 2:11pm

@awxiaoxian2020 awxiaoxian2020 linked an issue Jan 8, 2026 that may be closed by this pull request
@awxiaoxian2020 awxiaoxian2020 merged commit 23ca0a7 into v2 Jan 8, 2026
7 checks passed
@awxiaoxian2020 awxiaoxian2020 deleted the localization branch January 8, 2026 14:16
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.

Localize Sidebar in Doumentation Page

2 participants