I am using i18n in my meteor/react app and encountered some problem. In this case everything is working perfect:
import { translate, Trans } from 'react-i18next'; ... export class AddressVerificationForm extends React.Component { ... {this.props.t('address.photos.format')} ... export const AddressVerificationFormTranslated = translate('common')(AddressVerificationForm); But in this case:
import { translate, Trans } from 'react-i18next'; ... export function UserInterface({data, onAdmin, isAdmin}: propTypes) { ... {this.props.t('address.country')} ... export const UserInterfaceTranslated = translate('common')(UserInterface); I get:
Uncaught TypeError: Cannot read property 't' of undefined