Hi,
I have in my strapi admin created single type with localization, and in the graphQL playground i get the correct language subset with the following:
query{
about (locale:"en"){
title
info_
stack{
title
}
}
}
But in my frontend gatsby graphQL I cant return the data created in the english language, only the original Swedish single type I created originally.
This is the query I ran on the Gatsby graphQL:
query MyQuery {
allStrapiAbout(
filter: {localizations: {elemMatch: {locale: {eq: "en"}}}}
) {
nodes {
title
info_
image {
publicURL
}
}
}
}
Anyone who has a clue how this query should be written for the gatsby frontend?
Thanks