-
Notifications
You must be signed in to change notification settings - Fork 7
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
🐛 ♻️ trying to fix i18n with ssr #28
Conversation
# Conflicts: # .vitepress/components/TagChip.vue # .vitepress/theme/LhmThemeExtension.vue # .vitepress/theme/enhancements/i18n/lang/de.ts # .vitepress/theme/enhancements/i18n/lang/en.ts # .vitepress/theme/index.ts # package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe u can implement the translator as plugin to prevent that it has to be imported every time.
# Conflicts: # .vitepress/theme/LhmThemeExtension.vue
I will solve this in a new issue, as there are other branches waiting for this i18n feature. --> #32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Just a little typo
Co-authored-by: Sebastian <[email protected]>
Description
All efforts trying to get vue i18n to work with vitepress and SSR/vite failed. It either worked locally or during the build, but not both ways.
So in the end I opted for this way: Building my own translator-Composable which should behave in the same way that vue i18n did.
@MrSebastian feel free to give your feedback, too cause I build this upon your MR
Reference
Issues #20