Skip to content

Error: Failed to call useTranslations because the context from NextIntlClientProvider was not found. #1044

Answered by amannn
ScreamZ asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. Consider if it isn't an option to localize all pages, avoiding a mixed setup
  2. You could avoid using APIs from next-intl

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@amannn
Comment options

Answer selected by ScreamZ
@ScreamZ
Comment options

@amannn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants