Great job! I just have issue with prerender. I try prerender home page and I get:
Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app:
- /[[lang=langCode]]
Seems like crawler whats to start from root path and there is only +error and +layout files 🤔
Thank you so much for this article! It made it so clear and simple to follow along and saved me so much time. I'd like to ask you if you prefer using the route- or cookie-way of doing it? I think using a cookie would be simpler and easier to maintain but I can't see what are the disadvantages?
Great article! The only two things that I am missing is the automatic detection of the browser language through the header and a language switcher - could you possibly add this in the future? 🙏
Thanks for the awesome content Andreas! Best article about typesafe-i18n that I found! I am using routing for lang detection, but the content of the page is changing when I hover the links to different lang version (I am using hrefs to /de, /en,..). I know I can disable data preload in sveltekit, but is there any better solution? Thank you!
Very nice explained Andreas, great code snippets to code and learn along.
David Brutt
Hi. Great article. Saved me time. I would like to ask you why you added
await loadLocaleAsync(locale);
setLocale(locale);
In the Hook.server and in Layout.ts
as I checked adding this code at Layout.ts should do the work.
Am I missing here something?