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

# Format Currency (Variable Locale)

> Formater une devise avec la locale provenant d'une variable

## Présentation

La transformation `format-currency-locale-var` formate un nombre en devise en utilisant une locale fournie sous forme de variable.

## Syntaxe

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
format-currency-locale-var(<variable>, <locale-variable>, currency="EUR")
```

## Paramètres

| Paramètre         | Type     | Requis | Description                                          |
| ----------------- | -------- | ------ | ---------------------------------------------------- |
| `variable`        | number   | Oui    | Le nombre à formater en devise                       |
| `locale-variable` | variable | Oui    | La variable de locale (par ex. `"en-US"`, `"fr-FR"`) |
| `currency`        | string   | Oui    | Le code devise (par ex. `"EUR"`, `"USD"`)            |
| `minDecimal`      | number   | Non    | Nombre minimum de décimales                          |
| `maxDecimal`      | number   | Non    | Nombre maximum de décimales                          |

## Exemples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
format-currency-locale-var(<variable>, <locale-variable>, currency="EUR")
format-currency-locale-var(<variable>, <locale-variable>, currency="USD", minDecimal=2, maxDecimal=2)
```

<Info>
  Pour un formatage avec la locale et le code devise provenant de variables, voir [Format Currency avec variables Locale et Devise](/fr/advanced-guide/transformations/format-currency-locale-currency).
</Info>
