Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add language switch #58

Merged

Conversation

chenchongbiao
Copy link
Collaborator

添加语言切换的下拉菜单,不过由于是静态网站,路由是固定的,语言切换默认链的是对应语言最新版本。
例如:
点击中文,链接 /guide/start/whatis.md,点击英文,链接 /en/guide/start/whatis.md,如果在对应某个版本如1.5.x版本点击切换,英文并不会链接的 1.5.x/en/guide/start/whatis.md,而是链接的 /en/guide/start/whatis.md

添加语言切换的下拉菜单,不过由于是静态网站,路由是固定的,语言切换默认链的是对应语言最新版本。
例如:
点击中文,链接 /guide/start/whatis.md,点击英文,链接 /en/guide/start/whatis.md,如果在对应某个版本如1.5.x版本点击切换,英文并不会链接的 1.5.x/en/guide/start/whatis.md,而是链接的 /en/guide/start/whatis.md
@chenchongbiao chenchongbiao requested a review from myml December 9, 2024 07:52
@black-desk
Copy link
Collaborator

把路由改一下? 这个问题可能还挺要命的

@black-desk black-desk merged commit ca382f2 into OpenAtom-Linyaps:master Dec 12, 2024
2 checks passed
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