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
The issues lies in the Page <-> Navigation <-> Page relationship. When querying for pages, the german page's navigation holds english pages. So the navigation in German site would be in English. In the Hygraph API-playground the Navigation pages locale turns out correct.
If anyone encounters the same issue. I found a workaround by adding a localized field to the Navigation schema. This seems to make the Locale trickle through to the related pages..
Hi,
I'm building a site with a schema quite similar to https://github.com/hygraph/reference-marketing-website. But i'm using Gatsby.
The issues lies in the Page <-> Navigation <-> Page relationship. When querying for pages, the german page's navigation holds english pages. So the navigation in German site would be in English. In the Hygraph API-playground the Navigation pages locale turns out correct.
query MyQuery { allHygraphCmsPage { nodes { locale navigation { pages { locale } } } } }
{ "data": { "allHygraphCmsPage": { "nodes": [ { "locale": "de", "navigation": { "pages": [ { "locale": "en" }, { "locale": "en" }, { "locale": "en" }, { "locale": "en" }, { "locale": "en" }, { "locale": "en" } ] } }, { "locale": "en", "navigation": { "pages": [ { "locale": "en" }, { "locale": "en" }, { "locale": "en" }, { "locale": "en" }, { "locale": "en" }, { "locale": "en" } ] } } ] } }, }
The text was updated successfully, but these errors were encountered: