It should work for this use case too, can you share a reproduction based on github.com/amannn/nextj...?
Maybe I missed something β¦
There's also github.com/amannn/next-... btw. for sharing such feedback.
It should work for this use case too, can you share a reproduction based on github.com/amannn/nextj...?
Maybe I missed something β¦
There's also github.com/amannn/next-... btw. for sharing such feedback.
My demo is also using AsyncLocalStorage from Node.js, it's pretty handy!
Not sure if you can really call it a solution since it only works for self-hosted setups :). But yes, global state per request is what this does.
Black-magic Next.js hack of the week π§ββοΈ
β When self-hosting, you can pass request headers from a custom server to the rendering process without opting into dynamic rendering.
next-intl@4.8.1 is out with a minor fix for Windows, please keep the feedback coming!
π next-intl 4.8 is out with ahead-of-time compilation!
Flip the ππππππππππ flag and drop ~9KB of compressed JS from your bundles.
With ahead-of-time compilation of messages, while using an ultra-slim AST! It not only decreases your bundle size, but also improves runtime performance. Itβs been on my roadmap for a long time, Iβll share more in a blog post!
The slimmest next-intl ever is coming to a ππππ_πππππππ folder near you this week.
Youβre gonna love the upcoming next-intl release β¦ This was feature was on the roadmap for 3 years!
This is the first batch.
Definitely keep an eye out, as I'll be adding more over time and existing members automatically get access at no extra cost.
Got a tricky setup that isnβt covered yet? Just let me know!
learn.next-intl.dev
4 templates: - app-router-auth - app-router-saas - app-router-tenants - app-router-monorepo
Starter templates are here on π learn.next-intl.dev!
code.visualstudio.com/docs/getstar...
If you're not using π ππππππππ.ππππππ.πππππππ»πππππ.ππππππππ in your IDE yet, you should turn it on today.
Really cool! π
About to create the repo on GitHub β¦
I'm thinking about adding a set of premium templates for members of π learn.next-intl.dev
E.g.:
- Auth integrations
- E-commerce integrations
- CMS integrations
- Advanced cases like multi tenancy
Anything you found challenging that you think would be useful to include?
All good, I surely had to laugh at the hair salon reference π
If you're looking for an i18n library that causes a "compile time that takes longer that a hair salon appointment", then I've got your back π€
github.com/amannn/next-...
β¦ and then, you can of course pass the errors to the client side.
Code snippet that demonstrates how to use an error map in Zod 4 for computing errors.
Contextual, localized error handling in Server Actions with Zod 4 β the easy way.
Many thanks to everyone who is actively helping with feedback to get this to stability as quick as we can. I'm adding a test for every edge case that we discover to make sure this remains fixed once the root cause has been addressed.
Another week, and another release of next-intl is out with fixes for useExtracted.
In case you're already using this feature, it's recommended to upgrade!
github.com/amannn/next-...
Docs on custom formats β
next-intl.dev/docs/usage/e...
π next-intl@4.6 is out!
You can now define custom codecs for useExtracted if you have more specific needs than what ships out of the box.
This release also includes further fixes for message extraction, so definitely upgrade if you're already adopting this!
Awesome, thanks!
Fwiw my current todo list is more on the docs side, Iβm not aware of currently open bugs: github.com/amannn/next-...
If you have specific questions, donβt hesitate to reach out! (Ideally in the linked discussion, so others can chime in as well)
Cool! I know that some startups have already migrated to useExtracted and it works pretty well for them. Iβm dedicated to fix all bugs that appear as quickly as I can. Itβs still declared as experimental, but if youβd like to help stabilizing Iβd certainly appreciate it.
Unfortunately no π€·ββοΈ the nextjs 16 blog post hinted at that theyβre still working on it β¦ I occasionally reach out, but havenβt heard anything definitive yet