js-lingui icon indicating copy to clipboard operation
js-lingui copied to clipboard

Next.js tutorial

Open andrii-bodnar opened this issue 11 months ago • 3 comments

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).

andrii-bodnar avatar Mar 06 '24 08:03 andrii-bodnar

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.

vonovak avatar Mar 06 '24 09:03 vonovak

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

andrii-bodnar avatar Apr 03 '24 08:04 andrii-bodnar

Made an example and a guide. 👉 PR

fromthemills avatar Apr 03 '24 09:04 fromthemills