-
Install Polylang plugin on your wordpress site.
-
Add polylang parameters to your graphQL with wp-graphql-polylang plugin.
-
Update gatsby-source-wordpress plugin settings in gatsby-config.js with your wordpress url where you setup polylang plugin.
-
Update gatsby-node.js and template files name based on your language selections.
- In my code the default template is english and additional template is turkish.
-
Enjoy. ✨