Next.js Discord

Discord Forum

Providers renders in each layout/page or only in the main Layout?

Unanswered
nahuelluca posted this in #help-forum
Open in Discord
I use next-i18n-router for translate my web and i saw this article with how implemented that:
https://i18nexus.com/tutorials/nextjs/react-i18next

In this example use a TranslationsProvider for translate on client side, but wrapper every page that need translation.

My questions is, is better use TranslationsProvider in every page or layout that need translate on client side or use TranslationsProvider in mainly Layout only. This have impact on web performance or is bad practice for nextjs 14?

0 Replies