Use translation function from `i18n.useTranslation` hook instead of direct call to `i18n` function. ```diff - const text = i18n('key'); + const {t) = i18n.useTranslation(); + const text = t('key'); ```