> ## Documentation Index
> Fetch the complete documentation index at: https://docs.checkoutrules.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Translations

> Learn how to set up validation rules that display error messages in different languages based on the customer’s language, with a default fallback option.

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/Eo6mwiIgVsI?si=66pK6qjkOuweqrqk" title="BeSure Translations" style={{ border: 0 }} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## Overview

Translations allow you to localize validation error messages for different customer languages. By clicking the **Add translation** button, you can display error messages in multiple languages at checkout based on the customer's language. You can also define a default fallback message in any language you prefer, which will be shown when a translation is not available.

## How to set up

### Create a validation rule

Start by creating a rule with the condition(s) of your choice.

> For example, Order total amount less than or equal \$100

<img src="https://mintcdn.com/storespark/mA72VgVqDf-upVJ7/images/advanced/translations/set-order-amount.webp?fit=max&auto=format&n=mA72VgVqDf-upVJ7&q=85&s=a07d395307cda6cea1d0e345eb1e8271" alt="Set Order Amount" width="935" height="104" data-path="images/advanced/translations/set-order-amount.webp" />

### Select target

Select the **target** where you want the error message
to be displayed on the checkout page.

<img src="https://mintcdn.com/storespark/pRxetMhd3-MrZXc-/images/essentials/validation/action-target-dropdown.webp?fit=max&auto=format&n=pRxetMhd3-MrZXc-&q=85&s=ed758ecf440ed75cbc62cefaae12f450" alt="Action Target Dropdown" width="1154" height="850" data-path="images/essentials/validation/action-target-dropdown.webp" />

### Set default error message

Add the **error message** in the field. This message will be used as the default error message if no user language is found or if no translation is added for the error message. You can set it in any language you want.

<img src="https://mintcdn.com/storespark/mA72VgVqDf-upVJ7/images/advanced/translations/error-message-fallback.webp?fit=max&auto=format&n=mA72VgVqDf-upVJ7&q=85&s=25f73efe4219cfe554de8cb92d58fcc2" alt="Error Message Fallback" width="1261" height="157" data-path="images/advanced/translations/error-message-fallback.webp" />

### Add translations

Click the **Add translation** button. From the dropdown, select the language you want and enter the error message in the selected language. Repeat the same process to add translations for multiple languages.

<img src="https://mintcdn.com/storespark/mA72VgVqDf-upVJ7/images/advanced/translations/add-translations.webp?fit=max&auto=format&n=mA72VgVqDf-upVJ7&q=85&s=3da00777a01abf1c41789d52c30d412a" alt="Add Translations" width="1227" height="262" data-path="images/advanced/translations/add-translations.webp" />

### Summary

Here is a summary of the rule we created in the steps above:

> We set the condition **“Order total amount ≤ 99.99”** and select the target as **“Top of the checkout page”**. Our default message is:

> **“Order amount is less than the required minimum order amount of \$100.”**

> We then translate the error message into French and German:

> * **French:** "Le montant de la commande est inférieur au montant minimum requis de 100 \$"
> * **German:** "Der Bestellbetrag liegt unter dem erforderlichen Mindestbestellwert von 100 \$"

> Here is how you can set it up:

<img src="https://mintcdn.com/storespark/mA72VgVqDf-upVJ7/images/advanced/translations/example-translations.webp?fit=max&auto=format&n=mA72VgVqDf-upVJ7&q=85&s=bec33d53429cba949db5655c2464415a" alt="Example Translations" width="966" height="656" data-path="images/advanced/translations/example-translations.webp" />

## What happens at checkout

* If the customer’s **language is French** and the **order amount is less than \$100**, they will see the **French error message** at the checkout.

<img src="https://mintcdn.com/storespark/RDyGA09NSLSSmL-r/images/advanced/translations/example-french-error-message.webp?fit=max&auto=format&n=RDyGA09NSLSSmL-r&q=85&s=bc0bb28e3aca9d08b4ad14f1affdc60a" alt="Example French Error Message" width="1306" height="520" data-path="images/advanced/translations/example-french-error-message.webp" />

* If the customer’s **language is German** and the **order amount is less than \$100**, they will see the **German error message** at the checkout.

<img src="https://mintcdn.com/storespark/RDyGA09NSLSSmL-r/images/advanced/translations/example-german-error-message.webp?fit=max&auto=format&n=RDyGA09NSLSSmL-r&q=85&s=4ba2a577f997e0b4a4db623af5b99a1a" alt="Example German Error Message" width="1297" height="510" data-path="images/advanced/translations/example-german-error-message.webp" />

* If the customer’s **language is any other language** and the **order amount is less than \$100**, they will see the default **English message** at the checkout.

<img src="https://mintcdn.com/storespark/RDyGA09NSLSSmL-r/images/advanced/translations/example-english-error-message.webp?fit=max&auto=format&n=RDyGA09NSLSSmL-r&q=85&s=269e7cee334114a4e9985dba29421314" alt="Example English Error Message" width="1297" height="514" data-path="images/advanced/translations/example-english-error-message.webp" />
