I have translations on my backend, how to SSR them?
Unanswered
Tomistoma posted this in #help-forum
TomistomaOP
I have Reach Us page which is stored in
I feel like passing them as props to children components are bad pattern.
What is best way to SSR them using the new
src/app/reach-us/page.tsx and I need to get some translations from my backend (not next.js) /api/translations/en and use them in page.tsx component and in separate others components.I feel like passing them as props to children components are bad pattern.
What is best way to SSR them using the new
fetch function? I need some ideas.2 Replies
The current preferred way is [put everything under a dynamic segment](https://nextjs.org/docs/app/building-your-application/routing/internationalization), so that you can receive the locale from
params.Then, use the locale to fetch translations. You don't have to pass any extra options since it should be a static page by default.