> ## 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 (Locale Variable)

> Format currency with locale from a variable

## Overview

The `format-currency-locale-var` transformation formats a number as currency using a locale provided as a variable.

## Syntax

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

## Parameters

| Parameter         | Type     | Required | Description                                      |
| ----------------- | -------- | -------- | ------------------------------------------------ |
| `variable`        | number   | Yes      | The number to format as currency                 |
| `locale-variable` | variable | Yes      | The locale variable (e.g., `"en-US"`, `"fr-FR"`) |
| `currency`        | string   | Yes      | The currency code (e.g., `"EUR"`, `"USD"`)       |
| `minDecimal`      | number   | No       | Minimum number of decimal places                 |
| `maxDecimal`      | number   | No       | Maximum number of decimal places                 |

## Examples

```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>
  For formatting with both locale and currency code from variables, see [Format Currency with Locale and Currency Variables](/advanced-guide/transformations/format-currency-locale-currency).
</Info>
