Skip to content
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

Sveltekit i18n SSG with dynamic [locale] route #259

Open
kjellherzke opened this issue Oct 4, 2024 · 0 comments
Open

Sveltekit i18n SSG with dynamic [locale] route #259

kjellherzke opened this issue Oct 4, 2024 · 0 comments

Comments

@kjellherzke
Copy link

kjellherzke commented Oct 4, 2024

Hey,
I wanted to ask if anyone can provide insight on how to use svelte-i18n with a dynamic [locale] route the "right way" (best practices), renouncing server side practices in favor of SSG and client-side handling.

I managed to get it working for dynamic routes with a simple redirect according to some criteria on +layout.ts, but I struggle to detect the correct locale language on-time on client-side and then display updated translations and correct route fast enough.

Just wondering, if anyone has a better, more practical solution for this.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant