Comments (8)
@mifrej There was a recent discussion about this in #898 and it seems like there's movement on the Turbo side in regard to this 🤞
from next-intl.
The App Router example can be started with --turbo
. Maybe that helps! It's quite a minimal example at this point but illustrates that next-intl
works with Turbo.
I'm personally not using Turbo for commercial projects yet due to other bugs in Turbo I've encountered. I therefore don't recommend using it currently and the support in next-intl
is considered experimental. I think for now we might have to wait for the Turbo team to iron out the current issues :).
from next-intl.
Thank you very much @amannn, I'll checkout this App Router example and compare it with my setup.
However like you mentioned, I think I will wait as well before spending more time on this since it is considered experimental with Turbo. Hopefully the latest official releases of NextJS 14 will improve the Turbo experience and setup!
Have a pleasant rest of your day! Again thank you for your contribution! 🙂
from next-intl.
This looks like a duplicate of this: #718 (comment)
Turbopack support is currently experimental. If you want to help here, you can report this bug upstream in the Turbopack repo (in case it hasn't already been reported).
from next-intl.
Hey @amannn I don't know if this can help or give more context but I open this discussion in NextJS Github community:
I think the main raison why it's not working with Turbo (at least with my setup) is because when turbo cannot find the middleware.ts
which contains the configuration for localization.
What are your thoughts?
(Happy holidays as well!)
from next-intl.
From my experience, the middleware compiles just fine. You're right that the log output doesn't mention the middleware though (not sure if intended).
Happy holidays!
from next-intl.
@amannn thank you for your quick response!
That’s good to know, but could you, when the time permits, share your setup please (similarly like how I shared mine in the nextjs discussion)?
I might be missing something…? I really tried everything by now and I’m kinda starting to feel hopeless 😞. In my case, it gets stuck and no pages are being loaded successfully when using turbo…
I am now on the latest version of nextjs canary + next-intl (3.4.0) + Typescript v5 and still no luck… 🍀
Addionaly, it would be very appreciated if a boilerplate/example with turbo support could be added to the github’s examples or documentation. I’m positive it will help many!
Thank you very much! Sending you positive vibes and looking forward to your reply ~ 🙂
from next-intl.
The example you point to @amannn when using with --turbo
flag is not working.
The page remains fixed on one translation only, when with --turbo, whatever route language segment you use.
So bottom line is next-intl does not work with Turbo, but I get the point of --turbo being experimental, just wanted to clarify this here
from next-intl.
Related Issues (20)
- With i18n routing doesn't work with Next Canary (React 19) HOT 12
- Error: The React APIs of next-intl are currently not available in Server Components. HOT 2
- Route /en/xxx with `dynamic = "error"` couldn't be rendered statically because it used `headers` HOT 2
- Lazy-load intl-messageformat HOT 3
- Error: Insufficient params provided for localized pathname. HOT 1
- Link doesn't allow on production env HOT 1
- Integration with multi-tenancy HOT 12
- next-intl pages error (TypError) HOT 2
- Strict typing of global formats
- Next-intl Localization error HOT 1
- Error 1000 "DNS points to prohibited IP" when using next-intl with Cloudflare HOT 1
- Server action not found when using App Route with i18n HOT 2
- Docker Build Errors HOT 1
- Next-intl overrides generateStaticParams for all pages in next.js app HOT 1
- Matcher string in the docs is buggy HOT 1
- Pass `request` to `getRequestConfig()` HOT 3
- Switching language in sub-routes with dynamic routes throws an error HOT 6
- Importing createMiddleware() doesn't work as the tutorial suggests in type:module packages HOT 3
- Convenience injection of rewrites & exportPathMap HOT 3
- Domain based routing problem. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-intl.