Next.js Discord

Discord Forum

Can partial pre-rendering (ppr) be useful with i18n?

Unanswered
Newfoundland posted this in #help-forum
Open in Discord
NewfoundlandOP
You pretty much need to access and use dynamic data everywhere for this use case

4 Replies

NewfoundlandOP
For instance, did I already opt my entire app out of PPR because I set the locale on the html lang attribute?
  children: React.ReactNode;
  params: Promise<{ locale: string }>;
}>) {
  let { locale } = React.use(params);
  return (
    <html lang={locale}
NewfoundlandOP
or regular params aren't considered dynamic so it shouldn't be an issue
NewfoundlandOP
just watched the PPR deep dive and it looks like params are dynamic
be interested to learn more about this use case, from my current understanding it seems mostly impractical