Using next-i18next outside react component #2204
Unanswered
adarshaacharya
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There is no "good" way to use i18next outside... |
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
-
One of the frustating thing from past 2-3 weeks while adding i18 on my project is I can't do translation outside the React component.
Since
next-i18next
providesuseTranslation
hook which can be obviously used inside recat component but is there any way I can use it on my consts file or utils file which aren't react component.I've tried few solutions on internet but none of them worked. :(
Beta Was this translation helpful? Give feedback.
All reactions