Next.js Discord

Discord Forum

i18n internationalization no routing for default language

Unanswered
Nelson's Sharp-tailed Sparrow posted this in #help-forum
Open in Discord
Nelson's Sharp-tailed SparrowOP
I have 4 languages, nl, en, es, de. But I want the nl to be the default language AND NOT show up as /nl/, is this possible?

4 Replies

All you do is listen for no locale being set
Then in the middleware rewrite to a default locale
The url won't have any locale in it.. but the locale params will have your default locale
Australian Terrier
Are you using a library?
The behavior you described is the default behavior in [ParaglideJS](https://inlang.com/m/osslbuzt/library-inlang-paraglideJsAdapterNextJs) so you might want to take a look at that.