You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: