Nextjs, React, Localization, Routing, Web Development.
then default to English e.g. http://localhost:3000/en If a locale is selected, then use it If the URL doesn't include the locale, add en and keep the other segments. E.g. If the incoming request (to the middleware) is http://localhost:3000/about, default to http://localhost:3000/en/about Note that