Hey there.
I've been trying to send mails with Resend in my Next.js app. So far so good, it works with "raw data".
But then I've tried to enhance my templates with translations, reusing my already in place next-translate.
At first, I've added at the beginning of my template a useTranslation which I believed was working server-side despite its hook name, but it crashed the whole process.
I've tried to replace it by createTranslation, and while working in local, it does not work in prod. By looking at vercel logs once deployed, I have
TypeError: Cannot read properties of undefined (reading 'localesToIgnore')
I wanted to try the getT method as well, but I haven't even been able to load a translation in local with this method.
Am I missing something, is there a common way to achieve this?