Replies: 1 comment
-
Maybe have the translations loaded in-memory like here: https://github.com/i18next/react-i18next/tree/master/example/react-component-lib |
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.
-
I searched through the Issues & Discussions and found nothing relevant...
My app uses a component library (separate package) that I also want to be translated as well. Since
appWithTranslation
wraps the whole app with the I18nContext I should have access to the locale, calluseTanslation
, etc.But where do I put the JSON files for the component? For the app they're in the
/public
folder, but any component library would have the files deep innode_modules
. And how would I reference them? I imagine the same thing would happen in a monorepo as well.I appreciate any direction anyone can give! 🙏🏾
Beta Was this translation helpful? Give feedback.
All reactions