Internationalization, Next.js, Next-intl, root

Hello, I'm currently refactoring my old multilang app into the Next.js 15 App router configuration.

I've checked the documentation about internationalization: Internationalization with Next.js - Documentation - Prismic

However, I think it's missing an importing part on how we should pass the locales to the Navbar & Footer knowing that they are added at a higher level than the page through the Layout. Seems like the example is passing it to the Footer as if the Footer was a component added directly on the page.tsx of that page type, which is not.

Would you mind telling me which approach would you recommend?

Thanks!

Hi @Marving,

Are your navbar and footer their own custom types? Or did you hardcode them into your project?

If they are their own custom type, I know I've made it work in the past with having a language switcher in a Layout.js component, and the root layout with the navbar needed to be in the [lang] folder. Are you able to show me how you have your project set up (code extracts or a Github link or a zip file, up to you, feel free to send me a DM if that's easier there) so I can have a look? :slight_smile: