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

# locale(_:)

Modifies the measurement format style to use the specified locale.

## Declaration

```swift
func locale(_ locale: Locale) -> Measurement<UnitType>.AttributedStyle
```

## Parameters

- `locale`: The locale to use when formatting a measurement.

## Return Value

Return Value A measurement format style with the specified locale.
