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

# locale(_:)

Modifies the format style to use the specified locale.

## Declaration

```swift
func locale(_ locale: Locale) -> Self
```

## Parameters

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

## Return Value

Return Value A format style modified to use the provided locale.

## Discussion

Discussion Use this format style to change the locale used by an existing format style.
