This is what I meant when I said "second-class citizen at best".
Localized path segments like "/books" or "/libros" could be supported with a path segment mapping configuration.
It should work fine in theory. I guess those configs don't exist yet. Or is there something else that route localization requires?
On the other hand, what I see in practice is adding or removing context providers and layout components in the react router file, it becomes huge, and all the diffs change all of the lines with new indentation.
An option would be to add a catch-all route [1] at the root and implement your own code-based routing. You can still define the desired paths using getStaticPaths [2] but my guess is that some functionality like route-based code splitting will stop working.
0 - https://nextjs.org/docs/advanced-features/middleware
1 - https://nextjs.org/docs/routing/dynamic-routes#catch-all-rou...
2 - https://nextjs.org/docs/basic-features/data-fetching/get-sta...