I have two repositories. One with nextjs
application and second one with components that are being dynamically loaded into the first repo.
Since some of the components in second repo contain translations, I need to pass down a t
function or an i18n
instance (translation files and next-i18next
initialisation are in the first repo).
I tried to pass it using context provider, but that didn't work:
TypeError: Cannot read property 'translator' of undefined
Is there any recommended way how to achieve this?