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
I try to implement i18n on my project, but I can't query localized data using query like allArticle:
Can't filter by locale
Doesn't return all localization (to do a single query, then create pages for all locales)
I tried to replace my allArticle by allStrapiArticle, but this fails due to:
Many fields are missing (MDX, body, table of contents, time to read,...)
It's seems this fields are computed, is this computation available only when using allArticle ?
All relations aren't included (ex: author)
I tried to indicate how to populate relations in gatsby-source-strapi plugin import; but relations are still mising
I'm new to strapi and Gatsby, I certainly miss something 🤔
Recap questions:
Can i keep my queries using allArticle (and not refactor all my queries) ?
If not 2 solutions:
1/ Should I go for allStrapiArticle ?
=> If so: how can I get missing fields ?
2/ How can I global config (Gatsby or strapi) to return a single locale ? (In this case, I will host one Gatsby site by locale; but it's pretty ugly)
Another solution is maybe to use gatsby-source-graphql, but docs tell to use dedicated plugin if source have one (mainly to handle images well).
If online documentation/blog already explain this, feels free to just send link without explain.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I try to implement i18n on my project, but I can't query localized data using query like allArticle:
I tried to replace my allArticle by allStrapiArticle, but this fails due to:
I tried to indicate how to populate relations in gatsby-source-strapi plugin import; but relations are still mising
I'm new to strapi and Gatsby, I certainly miss something 🤔
Recap questions:
If not 2 solutions:
1/ Should I go for allStrapiArticle ?
=> If so: how can I get missing fields ?
2/ How can I global config (Gatsby or strapi) to return a single locale ? (In this case, I will host one Gatsby site by locale; but it's pretty ugly)
Another solution is maybe to use gatsby-source-graphql, but docs tell to use dedicated plugin if source have one (mainly to handle images well).
If online documentation/blog already explain this, feels free to just send link without explain.
Beta Was this translation helpful? Give feedback.
All reactions