Best approach for using Lingui for both server components and client components NextJs App router #2324
Unanswered
buiducnhat
asked this question in
Q&A
Replies: 1 comment
-
Check this #2284 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I started learning how to integrate lingui to my nextjs app (with app router, nextjs 15).
For summary, I have a root layout, and I only use server component/SSR for only the landing page at path
/
, it may become/[lang]
, ok.Then for some other paths like
/auth
,/dashboard
, I totally use"use client"
directive for layouts, pages cuz I don't need to SEO these pages.I have set up a boilerplate that can run, but the structure looks quite complex, that comes with 2
I18nProvider
, one for RSC, one for native React.So that I want to know if you guys are in the same situation like me, and we can discuss for the best approach.
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions