Video wird geladen...
Video konnte nicht geladen werden
I've finally published a new version of next-international, my fully typesafe i18n library for Next.js This release adds initial support for the App Router, with both Client and Server Components:
42,459 Aufrufe • vor 3 Jahren •via X (Twitter)
7 Kommentare

Tom Lienardvor 3 Jahren
cc @alvarlagerlof, I think you were interested

Tom Lienardvor 3 Jahren
On the Server Components side, it uses the `cache` function from React to share the current user's locale to sub-components I've also tried Server Contexts but that seemed too complex for what I need. But I'm not sure if `cache` is really meant for this use case 😅

Enyel Sequeiravor 3 Jahren
@nextjs Does this changes the routes? Like mysite/en or mysite/es? I know next-i18 does this, just wondering if with this package we can avoid that?

Tom Lienardvor 3 Jahren
@nextjs Currently yes, it might change/be configurable in the future

YetAnotherDev #_ 🇺🇦vor 3 Jahren
@nextjs That’s dope!

Megamindvor 3 Jahren
@nextjs This is crazy .

Damián Ricobellivor 3 Jahren
@nextjs What you did is amazing! Congratulations 🙌 By the way: is there any way to handle plurals?
