What should be the folder structure for Nextjs App Router i18n.
Do i need to wrap all my pages with [locale] or sth to use it?
2 Replies
Hi @dc_alexyt. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The
locale
prop in Next.js is used to navigate users to different versions of a webpage based on the user's preferred locale (language and region). You can serve users different versions of your webpage in their preferred language by configuring the i18n
object in next.config.js
. However, the extracts do not provide specific information on whether you need to wrap all your pages with [locale]
or how to structure your folders for i18n in a Next.js app.
For more detailed information, you can refer to the Next.js documentation on i18n routing (https://nextjs.org/docs/advanced-features/i18n-routing).
Source: Introduction to Next.js Link component with examples (https://refine.dev/blog/next-js-link-component#locale)
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@398749213795680259> kapa.ai is still learning and improving, please let us know how it did by reacting below