Hey everyone, Is there an example or update of the gatsby-multi-language-site Public repository but in gatsby4?
thanks
Hey everyone, Is there an example or update of the gatsby-multi-language-site Public repository but in gatsby4?
thanks
Hey there @manuelo, thanks for reaching out!
We're planning to progressively update all sample projects, but no, we don't have any that uses V4 just yet.
So sad. We are starting a new project and it would be great to use V4. please let me know if you have any example
It shouldn’t be long before we start migrating them to v4. You can expect the changes soon
Hey @manuelo, we've updated the multi-language sample to support GatsbyV4 in beta. Here's the link you should use when running the project. This link is temporal until we update the full documentation to support V4.
We hope you find this helpful!
npx prismic-cli theme --theme-url https://github.com/pvpg/gatsby-multi-language-site --conf prismic-configuration.js
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
Where is the value of $lang (inside the query of homepage.js) coming from? I am looking at the code to figure out the logic but I can't understand where this argument comes from at the first render of the website. Ideally I think it should be the default language...
Hey @ali.moret88, please look at the latest version of the sample. The homepage query is populated from the gatsby-node file: gatsby-multi-language-site/gatsby-node.js at c875d3df3fe2a4fd55d8ac8298ae090083cd33a2 · prismicio/gatsby-multi-language-site · GitHub
Hello @Pau yes thanks now I have figured the logic out.