Accepted answer

I found solution in exporting i18n object after inicialization and use that at all other places which I need.

file i18nSetup.js:

        resources: translationResources,
        interpolation: {
            escapeValue: false 

export default i18n;

In other files:

import i18n from "../functions/i18nSetup";

export function translateCell(cell) {
  return (i18n.t(cell));


Try like this:

import { Trans } from 'react-i18next';

and use it like this:


Related Query

More Query from same tag