---
title: "locale(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/duration/unitsformatstyle/locale(_:)"
---

# locale(_:)

A modifier to set the locale of the format style.

## Declaration

```swift
func locale(_ locale: Locale) -> Duration.UnitsFormatStyle
```

## Parameters

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

## Return Value

Return Value A copy of this format with the new locale set.

## See Also

### Working with locales

- [locale](swift/duration/unitsformatstyle/locale.md)
