Is there a way to translate something using the next-i18next library without changing the locale with router.push?
I have 3 locales: ['en', 'de', 'fr'], the default being de. When I am trying to do something like:
import {useTranslation} from 'next-i18next'
const Component = () => {
const { t } = useTranslation("common");
console.log(t('word', { lng: 'fr' }));
}
while my current locale is de, it returns the de translated version, not the fr.