# Internationalisation

Vous avez la possibilité de traduire chaque texte de votre thème de deux manières.

### Bloc conditonnnel

Vous pouvez utiliser la variable `locale` du `document` et un bloc conditionnel.

```
{% if document.locale == 'en' %}

  <p>Please find below the details of your invoice.</p>
  <p>Please pay the amount of {{ document.total_with_vat }} by {{ document.due_date }}.</p>

{% elsif document.locale == 'fr' %}

  <p>Veuillez trouver ci-dessous le détail de votre facture.</p>
  <p>Veuillez payer le montant de {{ document.total_with_vat }} avant le {{ document.due_date }}.</p>

{% endif %}
```

### La fonction "translate"

Vous pouvez utiliser notre fonction translate.

```
{% translate fr: "Facture", en: "Invoice" %}
```

ou

```
{% t fr: "Facture", en: "Invoice" %}
```

**Note**

Nous vous recommandons d'utiliser le bloc conditionnel si vous avez plusieurs lignes à traduire et la fonction translate pour les traductions sur une seule ligne.


---

# 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://documentation.factures.com/systeme-de-themes/internationalisation.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.
