Splitting locale string in the URL #789
-
I'm wondering if it is possible to split the locale string in the url. For example, a locale may be Furthermore, this should also work with Judging by what I read on other GitHub issues, this sounds feasible through composing middleware. I do wonder if you may have some suggestions on how to approach this in the middleware, or even pointers regarding other discussions that may be useful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yep, that's absolutely a valid case. Currently, the middleware and navigation APIs of |
Beta Was this translation helpful? Give feedback.
Yep, that's absolutely a valid case. Currently, the middleware and navigation APIs of
next-intl
expect a single locale prefix and I'm collecting use cases like yours in #653. Providing your own middleware and navigation APIs in these cases might be the best option for the time being.