You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Thanks for this great project.
I followed the intructions and it worked great, on my local machine, perhaps when I deploy it it doesn't react correctly.
Indeed in my local machine, it translates automatically, but when I deploy it, it doesn't.
When I use :
const { locale, defaultLocale } = useRouter();
on my local machine I have locale = fr (my langage in my explorer is set to french), but on the net it stays en-US
In my code I translate with the methods in the doc :
export default function useTranslationMe(namespace, options) {
const { t, lang } = useTranslation(namespace, options);
const T = useMemo(() => t, [lang]);
return { t: T, lang };
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Thanks for this great project.
I followed the intructions and it worked great, on my local machine, perhaps when I deploy it it doesn't react correctly.
Indeed in my local machine, it translates automatically, but when I deploy it, it doesn't.
When I use :
on my local machine I have locale = fr (my langage in my explorer is set to french), but on the net it stays en-US
In my code I translate with the methods in the doc :
Beta Was this translation helpful? Give feedback.
All reactions