Setting up Mono repo #1172
Unanswered
BjoernRave
asked this question in
Q&A
Replies: 2 comments
-
|
Not sure if you found an answer but I think you might have to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
By the way, you trick of deleting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a mono repo with turbo and pnpm and I have my main app in
apps/backendwhich is a nextjs project using the pages router, my locales inpackages/localesand I have a shared lib inpackages/sharedwhich is also using theuseTranslationhook.I have a
i18n.jsfile in my backend folder with the following content:The translations for the backend app are being loaded fine, however the translations for the comonents inside the shared folder are not being loaded. Is there a way to make it work?
Another weird thing is that in my second app in
apps/pdswhich is another using nextjs project using the app router the translations for the shared components are loading fine, even though thei18n.jsfile is the same in both.next.config.jsin backend:next.config.jsin pds:Beta Was this translation helpful? Give feedback.
All reactions