Integrate the Polylang plugin into the theme
Because the theme works a lot on Gutenberg blocks and gets data based on Graphql, so some customization steps need to be done for the Polylang plugin to work properly
Need to install and activate the plugins: Polylang and WP GraphQL Polylang
Navigate to: Theme options -> General settings -> Enable Active language (Polylang) in Graphql
Navigate to the locales folder in the theme or child-theme, I recommend customizing in the child-theme as it won't be lost when you update the theme
Add file translate javascript - Please watch and follow this video: https://www.loom.com/share/2ea970d38a22436fb0643d5471c772e7
Note: window.locales.EN = en; where EN is the language code and uppercased.
Last updated