-
Instead of coding each time
Can we introduce our API one time our root URL and pages can have this $locale value by default
Will still direct to So our hrefs takes the root as http://localhost:3000/de or http://localhost:3000/it , just given an instance |
Beta Was this translation helpful? Give feedback.
Answered by
ivanhofer
May 29, 2022
Replies: 1 comment 1 reply
-
This is something that is not related to In your example you would need to tell SvelteKit how to handle those links.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ivanhofer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is something that is not related to
typesafe-i18n
itself.In your example you would need to tell SvelteKit how to handle those links.
<A>
component that accepts an "href" and prepends it with the correct locale.hooks
file and redirect to the language specific url if no locale information is present (not recommended).