Skip to content

Pages router - Localized pathnames #1004

Answered by amannn
rafalkazik asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question! The localized pathnames are in fact a newer feature that has been added as part of the App Router support. To be honest, I never experimented with how it works with the Pages Router.

There is, however, an example that illustrates how the Pages Router and App Router can be used side-by-side: App Router Migration. In that example, the i18n feature from the Pages Router is not used and routing is being handled by the middleware.

Maybe that puts you in a better position where localized pathnames could work in the Pages Router?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rafalkazik
Comment options

You must be logged in to vote
5 replies
@0xyy
Comment options

@rafalkazik
Comment options

@0xyy
Comment options

@rafalkazik
Comment options

@amannn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants