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

  1. Need to install and activate the plugins: Polylang and WP GraphQL Polylang

  2. Navigate to: Theme options -> General settings -> Enable Active language (Polylang) in Graphql

  3. 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

  4. Add file translate javascript - Please watch and follow this video: https://www.loom.com/share/2ea970d38a22436fb0643d5471c772e7

  5. Note: window.locales.EN = en; where EN is the language code and uppercased.

Last updated