js-lingui
js-lingui copied to clipboard
Next.js tutorial
Next.js is one of the most requested and popular cases when users ask about using Lingui. Currently, we don't have a single guide that describes all the details of internationalizing Next.js apps.
We do have some examples with the Pages Router, and a PoC of usage with the App Router.
As was recently discussed, it would be great to have a separate guide that covers both ways (pages router and app router (using the @lingui/react/server
PoC).
I have recently set up Lingui with the app router, including server and client components, so I'm happy to do it.
My timeline is ~ end of March.
I think it would be also great to mention the recent feature in the React bundle - https://github.com/lingui/js-lingui/releases/tag/v4.8.0
Related discussion - https://github.com/lingui/js-lingui/issues/1698#issuecomment-2027410010
Made an example and a guide. 👉 PR