-
Hi, Following my thread on #1031 I'm using the following structure and I get this message:
Footer.tsxexport const Footer: React.FC = () => {
const t = useTranslations("Footer");
return null;
} Output is Even if I comment QuestionWhy is this considered a client component and crash isn't this supposed to be a shared component as defined here? I don't even use a use client directive. And therefore I don't need to show a context with all the messages sent to the front. (I'm having so much issue with this new app router, why is this so complicated Vercel team 😅) (I know you're not concerned directly about this) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Exact same code in [locale] part of the application, no issues. Damn 😅 I guess some contextual data might be missing ? Isn't this supposed to fallback on the default locale or whatever ? |
Beta Was this translation helpful? Give feedback.
Well the problem is that you're using localization APIs in a folder that's called "(not-localized)" 😄. It's interesting that you see that particular error message though. I have to say you probably haven't picked the easiest use case to start out with a mix of localized and not localized pages.
I'm currently working on #1017 which will allow to use APIs from
next-intl
in an app that only uses a single locale (your "not localized" use case). However, having both not localized and localized pages in the same app is still quite tricky.Some options that could work for you:
next-intl
…