Skip to main content

Overview

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

Syntax

format-currency-locale-var(<variable>, <locale-variable>, currency="EUR")

Parameters

ParameterTypeRequiredDescription
variablenumberYesThe number to format as currency
locale-variablevariableYesThe locale variable (e.g., "en-US", "fr-FR")
currencystringYesThe currency code (e.g., "EUR", "USD")
minDecimalnumberNoMinimum number of decimal places
maxDecimalnumberNoMaximum number of decimal places

Examples

format-currency-locale-var(<variable>, <locale-variable>, currency="EUR")
format-currency-locale-var(<variable>, <locale-variable>, currency="USD", minDecimal=2, maxDecimal=2)
For formatting with both locale and currency code from variables, see Format Currency with Locale and Currency Variables.