This library is PAINFULLY slow on Nextjs, specially when integrating route based locales. DO NOT USE THIS LIBRARY IF YOU'RE NEW TO INTERNATIONALIZATION... #2190
Replies: 2 comments 2 replies
-
|
Hey buddy, sorry to hear if you had a bad experience! If you're unsure about setting up an app, you can always start with the App Router with locale-based routing example. I'd also argue it's pretty fast:
But happy to be proven wrong if you spot something that I've overlooked! |
Beta Was this translation helpful? Give feedback.
-
|
I can second that, I used |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I'm sorry but i have to be this guy, if you're new to translations, internationalization, this library is not for you, even if it seems easy to set up, bugs, cache issues, rtl issues, and other stuff keep adding up, not to mention the compile time that takes longer that a hair salon appointment. DO NOT USE THIS LIBRARY IF YOU'RE NEW TO NEXTJS.
I would instead recommend next-international https://next-international.vercel.app/ , good DX, easy setup, and not a PAINFULLY hard documentation to follow and PAINFULLY slow bottleneck introductions. TOOK ME 2 WEEKS!! 2 WEEKS TO REALIZE THAT THIS LIBRARY IS NOT THAT GOOD, THERE WAS NO HOPE FIXING THOSE PERFORMANCE ISSUES AND RTL ISSUES next-internationalization is MUCH MUCHHH BETTER https://next-international.vercel.app/. It was such a relief integrating it.
PS: If you really insist on using this library, maybe one solution/extra step to keep in mind is you'd need to keep the root layout outside the [locale] folder, and create a LocaleLayout inside the [locale] dynamic route folder, this will increase the performance a bit, but hey... good luck.
Beta Was this translation helpful? Give feedback.
All reactions