Learn how to change the default i18n routing behavior in LaunchIt
/en
is the default language. The other languages are prefixed with their language code (e.g. /de
for German).
.env
file and set the NEXT_PUBLIC_ENABLE_LANG_ROUTING
to 0
.web/[locale]
folder to the app
folder. Override every existing file. Delete the empty /[locale]
folder..env
file and set the NEXT_PUBLIC_ENABLE_LANG_ROUTING
to 1
.web/middleware.ts
with the code you’ll find in the example above. Also replace the the return condition like so:web/[locale]
folder to the app
folder. Override every existing file. Delete the empty /[locale]
folder.