Replies: 1 comment 1 reply
-
|
You assume that we know anything about What I understand is that you need to init first before usage, so you need a way to run some code before React renders. My intuition is that you could init some globals with I'd suggest adding |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello.
I work on a package who export multiple ReactJs components. Let's call it "utilityPackage".
This package doesn't have
ReactDOM.render( <App />, document.getElementById("root"));so i cannot find a way to initreact-i18next.So in each component i need to translate some texts i pass
tas argument.In the projets who import
utilityPackagei have something like this :I use
utilityPackagealso in docusaurus but i cannot find a way to access i18ntfunction.Is there a way to init
initReactI18nextand useuseTranslationhooks in docusaurus ?thanks
Beta Was this translation helpful? Give feedback.
All reactions