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

# locale(_:)

Modifies the format style to use the specified locale.

## Declaration

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

## Parameters

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

## Return Value

Return Value A decimal percent 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/percent/decimalseparator(strategy:).md)
- [grouping(_:)](foundation/decimal/formatstyle/percent/grouping(_:).md)
- [notation(_:)](foundation/decimal/formatstyle/percent/notation(_:).md)
- [precision(_:)](foundation/decimal/formatstyle/percent/precision(_:).md)
- [rounded(rule:increment:)](foundation/decimal/formatstyle/percent/rounded(rule:increment:).md)
- [scale(_:)](foundation/decimal/formatstyle/percent/scale(_:).md)
- [sign(strategy:)](foundation/decimal/formatstyle/percent/sign(strategy:).md)
- [Decimal.FormatStyle.Percent.Configuration](foundation/decimal/formatstyle/percent/configuration.md)
- [NumberFormatStyleConfiguration](foundation/numberformatstyleconfiguration.md)
