-
Notifications
You must be signed in to change notification settings - Fork 146
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
[Bug]: action.link in HomeHero Component doesn't generate link with language prefix #924
Comments
I think it should be resolved by the compiler, as most of the other links are done through the compiler. |
This is a point that can be optimized. The experience should be the same as the link in the mdx file, with the lang prefix automatically added. Currently, the hero component has no related |
So, how should I solve this problem? Compiler or Component (theme-default) |
I think component is better for theme related like i18n and multiversion. @sanyuan0704 What's your opinion? |
Version
Details
https://github.com/web-infra-dev/rspress/blob/main/packages/theme-default/src/components/HomeHero/index.tsx#L66
we need to manually add zh prefix to config link in zh docs
Reproduce link
https://github.com/web-infra-dev/rspress/blob/main/packages/document/docs/zh/index.md?plain=1#L17
Reproduce Steps
The text was updated successfully, but these errors were encountered: