fix(gatsby-source-strapi): Strapi v5 Fix "locale=all" i18n feature for Single Types and Collection Types#521
Conversation
…de ID conflicts for strapi v5
🦋 Changeset detectedLatest commit: a6fa131 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
I'm not sure about the JSON change.. It has always been buggy but I don't think you should include changing that within this feature |
I just tested on a new strapi project without It fetched |
d026986 to
a6fa131
Compare
I agree, i pushed code a bit fast sorry ! I just tested when revert JSON code as it was and it worked normally |
Description
Some of the job have been done previously to handle strapi v5 with this plugin, but, since they removed locale==all parameter when migrating strapi from v4 to v5, it is impossible to fetch multiple locales
See strapi migration page
So what i did is
The workflow i proposed consist in
fetchEntitiesfunc) by fetch an element with localizations, then loop on all locales to do one query per locale (and with actual system on pagination)Documentation
no need to change, my PR contribute to keep the actual configuration
@moonmeister could you plase me send a feedback ? Thanks
Related Issues
Fixes #509