next-intl + route handler
Answered
Mini Satin posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Mini SatinOP
Anyone did this duo? I am getting this error:
Unable to find 'next-intl' locale because the middleware didn't run on this request.
Answered by Mini Satin
Thanks ! But the error was that I can’t pass undefined to the server side translations, it gives this error without explanation. You need to pass the default by yourself.
3 Replies
![Avatar](https://cdn.discordapp.com/avatars/928971763247890432/16ea10e90d225083eacd288241e577f8.webp?size=256)
Rain infotech
// next.config.js
const withNextIntl = require('next-intl');
module.exports = withNextIntl({
// Your next-intl configuration options
});
I would like to propose a solution for the challenge you're facing
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Mini SatinOP
Thanks ! But the error was that I can’t pass undefined to the server side translations, it gives this error without explanation. You need to pass the default by yourself.
Answer