-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Advanced router (default locale no prefix) with static adapter? #167
Comments
I can't find example without prefix for default locale in repository, that's very sad. If someone can make example, it will be really cool... |
There is example https://github.com/sveltekit-i18n/lib/tree/master/examples/locale-router-advanced, but it doesn't work with static adapter. To make it work with static adapter, check out locale-router-static example and set lang param as optional (double square brackets). Then the default locale will be created both in root and language folder. And on server you can use rewrite rules to redirect default locale folder to root. |
How to use static adapter with example in locale-router-advanced? What I need is to have my default locale without prefix, but files should be built statically. Static adapter works with locale-router-static, but every language has prefix there and the index.html only has JS redirection to default locale.
In svelte.config.js I have this:
All I get is this useless error:
The text was updated successfully, but these errors were encountered: