---
title: "locale(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/decimal/formatstyle/currency/locale(_:)"
---

# locale(_:)

Modifies the format style to use the specified locale.

## Declaration

```swift
func locale(_ locale: Locale) -> Decimal.FormatStyle.Currency
```

## Parameters

- `locale`: The locale to apply to the format style.

## Return Value

Return Value A decimal currency format style with the provided locale.

## Discussion

Discussion Use this format style to change the locale used by an existing format style. To instead determine the locale used by this format style, use the locale property.

## See Also

### Customizing style behavior

- [decimalSeparator(strategy:)](foundation/decimal/formatstyle/currency/decimalseparator(strategy:).md)
- [grouping(_:)](foundation/decimal/formatstyle/currency/grouping(_:).md)
- [precision(_:)](foundation/decimal/formatstyle/currency/precision(_:).md)
- [presentation(_:)](foundation/decimal/formatstyle/currency/presentation(_:).md)
- [rounded(rule:increment:)](foundation/decimal/formatstyle/currency/rounded(rule:increment:).md)
- [scale(_:)](foundation/decimal/formatstyle/currency/scale(_:).md)
- [sign(strategy:)](foundation/decimal/formatstyle/currency/sign(strategy:).md)
- [Decimal.FormatStyle.Currency.Configuration](foundation/decimal/formatstyle/currency/configuration.md)
- [CurrencyFormatStyleConfiguration](foundation/currencyformatstyleconfiguration.md)
