score:1

Accepted answer

https://react.i18next.com/guides/quick-start

if you need to access the t function or the i18next instance from outside of a react component you can simply import your ./i18n.js and use the exported i18next instance:

import i18next from './i18n'

i18next.t('my.key')

enter image description here


Related Query

More Query from same tag