-
Hi! I have a website that I want to rewrite using Svelte Kit, but in your example with typesafe-i18n for Svelte Kit, it's not possible to remove the prefix for the English language. I don't want to rewrite the current link structure and keep the same URL system. Is it possible to do this? If yes, what changes need to be made to your example for Svelte Kit? While I was writing the message, I saw that the user @pavelstianko made such an implementation #630. But there is no example, I hope he will answer and help me do the same, or someone else will suggest a solution. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@ansbr you need to use optional route parameter. |
Beta Was this translation helpful? Give feedback.
@ansbr you need to use optional route parameter.
And then you need to remove the redirect in the
hooks.config.js
. You probably also need to make some adjustments to theLocalSwitcher
component