I followed the react-i18next docs and internationalized my React app.
I use the useTranslation
hook, which gives me the "t" object. All nice and smooth for now, but I have some non-Hook utility functions which are outside the component tree.
How to get access to the translation object there?