getTranslation
Use the translation function outside of React components.
Last updated
Was this helpful?
Use the translation function outside of React components.
Last updated
Was this helpful?
It's like useTranslation but it's not a hook, it can be used outside of React.
Be mindfull, local resources are downloaded lazyly in with . If the resources aren't downloaded yet you'll get empty strings. Also you have to subscribe to language changes to get the updated values.