Open developer-bart opened 2 years ago
Had the same problem. I've solved this by creating an empty default-lang-folder/translation.json for my default language.
You need to configure the gatsby-filesystem-plugin, which creates the graphql contents that i18n builds on. Or that it was in my case.
I think it could also result from querying for nodes
directly, as the plugin expects edges.node
.
I'm using the plugin to handle language state en automate language urls only. I don't want to use local translation files but instead use Prismic CMS via graphql directly.
These are my plugin options in
gatsby-config.js
:I'm using the provided
language
inside thepageContext
to query Prismic data with the correct language like so:Using this setup I have this console error in my development environment I'd like to get rid off:
Help would be much appreciated!