Developer Forum

Ask a Question
Back to All

How to change path when select a language

I am using nextjs and I wanna change the path of the url when I select a language. For example my base url or my english url is www.xyz.com, when I select a language like french or spanish, the path should change to www.xyz.com/fr or www.xyz.com/es."

How to achieve this?