-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add SSR support and enhance Vue integration for Tolgee #3367
Conversation
Would you be able to also write some short documentation? Something like this https://tolgee.io/js-sdk/integrations/react/ssr . If you don't have time, I can do it, but we need some docs for this. |
I will try to do it this evening. In general, I think we can copy most parts of the React documentation and just adjust the syntax, because for Vue we don't have useTolgeeSSR but the main logic is the same. |
Hey @stepan662, Additionally, I think it would be a good idea to add an example of integration for Nuxt. We should also mention the version of Tolgee that supports Vue SSR. |
Yeah the example for nuxt would be really cool. I'm currently stuck on a big task in the platform, so I can do it later, if you don't have time to do it. |
- Added a check to throw an error if `staticData` or `language` props are not provided during the initial render. - This ensures that the necessary data is available for proper SSR functionality.
@EugeneBalabai Thanks a lot for PR. We'll send you some reward, stay tuned 😉 |
This PR improves the Tolgee integration with Vue, focusing on enhancing Server-Side Rendering (SSR) support and overall functionality. Key changes include:
These changes aim to provide a more robust integration of Tolgee with Vue applications, especially in SSR environments. The updates should result in improved performance and developer experience when working with translations in Vue projects.