-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locale at query level returns wrong fields #209
Comments
I'm facing the same issue. If a locale is not defined on a field level the secondary locale is returned even if a fallback locale is set to the primary locale. Doesn't affect development. |
Facing the same issue, not on a development but on every build.
here is my gatsby-node just to show that I'm creating the same page on different languages :
and as you can see in my context the locale is "fr" and the data returned is in english |
Hey folks, I opened PR with potential fix for those issues in #211 |
Issue when querying a document with the locale argument at document level, like the the query below:
This query will, sometimes, ramdomly return fields in the wrong language when building the site. This happens mostly in production.
As an example, if the $language is PT, portuguese, I will get fields in EN, english.
The safe way to ensure the correct field language, is to use the locale argument at field level, like below:
The text was updated successfully, but these errors were encountered: