Upgrading localized routing to v2 #3483
Unanswered
MarkusKramer
asked this question in
[Paraglide] Svelte + SvelteKit
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to migrate a SvelteKit app to paraglide v2.
Previously it was possible to localize a bunch of static URLs easily with something like:
see https://inlang.com/m/dxnzrydw/paraglide-sveltekit-i18n/localised-routing
Based on what's documented at https://inlang.com/m/gerre34r/library-inlang-paraglideJs/strategy#pathname-based-url-localization-example it's unclear how to combine having a URL lang prefix like /en or /de AND localized paths.
I've tried:
Opening any page e.g. /en/about-us results in a 404 however.
How to migrate the old config?
What is the expected behavior if no url pattern matches?
Also can I still expect links in svelte components like /about to get automatically localized depending on the current locale?
Beta Was this translation helpful? Give feedback.
All reactions