Using `next-international` for i18n support breaks my tRPC config.

I am trying to add translation support to my app (https://expenses.rmallafre.com), and everything was going fine up until a client component needed to do some tRPC queries. I see that the route it hits is a localised route (as in: /en/api/trpc/... rather than just /api/trpc/...). I have no idea what I need to change anymore to get this to work. The code is available at: https://github.com/nikensss/is-it-that-much/tree/iitm-22-localisation
GitHub
GitHub - nikensss/is-it-that-much at iitm-22-localisation
Contribute to nikensss/is-it-that-much development by creating an account on GitHub.
4 Replies
Gabriel
Gabriel9mo ago
Hi! I am using next international as well. I place /api/ outside of [locale]
Gabriel
Gabriel9mo ago
GitHub
kodix-turbo/apps/kdx/src/app at main · dBianchii/kodix-turbo
Contribute to dBianchii/kodix-turbo development by creating an account on GitHub.
Gabriel
Gabriel9mo ago
One question: why are you using next-international, in the midst of other packages?
nikens
nikensOP9mo ago
No particular reason, it was the one I saw that seemed to have the simplest steps to get it up and working. I'm gonna check your repo in a bit, thanks a lot for the help! I also keep /api outside of /locale, btw
Want results from more Discord servers?
Add your server