# How to translate CMS content with Polyflow (step 1)

{% embed url="<https://www.youtube.com/watch?v=Y6_3FVQwSHQ>" %}

1\. First of all we need to add to the collection an **Options field "Language" with the ISO codes of the different languages in the options** we need.

{% hint style="info" %}
Remember: ISO is a standardized nomenclature used to classify languages, each language is assigned a two or three-letter lowercase abbreviation.

Check out here for a list of ISO codes as you will need to use them to create your language versions: <https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes>
{% endhint %}

<figure><img src="/files/K81bs8OjjlZ4Clls5Q3W" alt=""><figcaption></figcaption></figure>

In this example, we have a Collection for our website FAQs, and we need to have them in English and Spanish. We are going to add an Options field to our Faqs collection with "es" and "en" options to choose.

2\. Next, we will add all our faqs (in both languages) and assign each one its language in the Options field:

<figure><img src="/files/Z7ZrtV8BYGzYYdPRhtqT" alt=""><figcaption></figcaption></figure>

3\. Then, we are going to create two Collection lists for Faqs collection, and we are going to Filter the items by language.

In the first list of the collection, we are going to show only the articles in English, and in the second list we are going to show only the articles in Spanish. To do this, we just need to add a Filter by the "Language" Options field.<br>

<figure><img src="/files/a7fuHdwzlRok02SoKhEH" alt=""><figcaption></figcaption></figure>

4\. Finally, we are going to add a Polyflow Custom Attribute to display each collection in the correct language on our website.

To do this, we just need to add a Custom Attribute "**polyflow-only**" with the **ISO code** of the language for each collection list.\
In the collection list that includes the items filtered by the english language, let's add the following custom attribute **"polyflow-only" = "en"**; and in the spanish case, we are going to add **"polyflow-only" = "es"**.

Easy!<br>

‍


---

# 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://guides.polyflow.co/cms-content/how-to-translate-cms-content-with-polyflow-step-1.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.
