wet-harlequinW
Refine2y ago
5 replies
wet-harlequin

useTranslation from documentation does not exist

I'm trying to use the useTranslation hook just like in the documentation. I've followed all the steps, and inside the Header component I'm trying to do import { useTranslation } from '@refinedev/core';, and then :
    const { i18n, getLocale, changeLocale } = useTranslation();
    const currentLocale = getLocale();


But it says that useTranslation does not exist, and the suggested useTranslate does not provide any of the aforementioned properties.
Was this page helpful?