# 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](https://vi.wordpress.org/plugins/polylang/) and [**WP GraphQL Polylang**](https://github.com/valu-digital/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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nghiaxchis.gitbook.io/ncmaz-wordpress/how-to/integrate-the-polylang-plugin-into-the-theme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
