Roadmap & Caveats
- Translated parameters
- Domain Based routing
- Fix the Caveats
Caveats
- Links in the same Layout Component as
<ParaglideJS>will not be translated. This will also log a warning in development. - Messages are not reactive. Don't use them in server-side module scope.
- Side effects triggered by
datawill run on language changes even if the data didn't change. If the data is language-dependent the side effect will run twice. - The
languageTagfunction cannot be used inside param matchers.
Using messages in +layout.svelte
The language state gets set when the <ParaglideJS> component is mounted. Since you usually place it inside +layout.svelte using messages in the layout's <script> can cause issues.
Issues on Vercel
SvelteKit's reroute hook currently doens't play well with Vercel (see sveltejs/kit#11879), which means that we need to slightly adapt the setup to make it work when deployed to Vercel.
- Remove the
reroutehook fromsrc/hooks.js - Move the routes you want to localize
routesinto a[[locale]]folder - Don't use translated
pathnames
We are working on contributing a fix for sveltejs/kit#11879, so this workaround will hopefully not be needed much longer.

