Replies: 2 comments 14 replies
-
Hmm, I haven't worked with @onedoc/react-print so far. Where do you execute the function? In a Route Handler or Server Action? Based on the error message, it seems like you're rendering with Server Components. You could try adding a |
Beta Was this translation helpful? Give feedback.
-
Maybe somebody could give some insights. How does the middleware enrich the whole setup, so it can use useTranslation under the hood. I think I have to do this step manually if I'm in my server route handler. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm using compile from @onedoc/react-print in my javascript backend to render a react component.
In past I used i18n on next 12 but after rebuilding my application into next 13 app directory structure, I changed to next-intl.
But now there is a problem. How can I pass the translation function into my react component?
In the past I did it this way:
Does anybody has an idea?
If I use
And
I receive:
Thank you for your help ;)
T
Beta Was this translation helpful? Give feedback.
All reactions