# WPML

WooCommerce Multilingual by WPML allows merchants to translate all information on their WooCommerce store into different languages automatically or manually.&#x20;

Start with WPML by setting up languages for your store. With its easy-to-use interface, you can add many languages to translate for your store. In this case, we added German and Vietnamese; the default is English.

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

WPML will translate your entire site automatically, or you can choose which content to translate as needed. And then, it's time to see the integration of WPML and YayCurrency.

### Disable “WPML Compatible” option

With the default setting of YayCurrency, navigate to Advanced Settings, you can see the WPML Compatible isn't turned on.&#x20;

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

With this option disabled, when visitors access your shop page, they can switch this page to the language they choose. However, the currency of the product is still displayed based on the current geolocation or pre-existing cookies.&#x20;

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

### Enable “WPML Compatible” option

Click to enable WPML Compatible to trigger the function of these plugins. First, you should assign the currency corresponding to the country's language.&#x20;

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

Next, go to the shop page, when visitors click on the switcher to change the language, this page will be translated into the language they choose, including the currency.

As you can see, our shop page was translated into Deutsch and the currency also changed to Euro. Furthermore, when using WPML to switch languages, customers will not be able to change the currency as desired.

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

The Cart page or others were translated too.

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

This integration helps you save a lot of time by making the language and currency switchers work in conjunction. The combination of these two plugins is a great multi-currency and multi-language solution for merchants.&#x20;

<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://docs.yaycommerce.com/yaycurrency/compatibility/wpml.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.
