What problem does the feature solve?
If "url" strategy is set and a user opens the url with baseLocale, the middleware should redirects the user to url without locale. For example:
- baseLocale is set to "en"
- A user opens url "http://localhost:5173/en"
- middleware redirect to "http://localhost:5173" because "en" is a base locale
The same use case should be applied when locale in url doesn't exist.
What does the proposed API look like?
This feature should be enabled by default.