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

# locale(_:)

Modifies the measurement format style to use the specified locale.

## Declaration

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

## Parameters

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

## Return Value

Return Value A measurement format style with the specified locale.

## See Also

### Modifying a measurement format style

- [width](foundation/measurement/formatstyle/width.md)
- [Measurement.FormatStyle.UnitWidth](foundation/measurement/formatstyle/unitwidth.md)
- [numberFormatStyle](foundation/measurement/formatstyle/numberformatstyle.md)
- [usage](foundation/measurement/formatstyle/usage.md)
- [hidesScaleName](foundation/measurement/formatstyle/hidesscalename.md)
- [locale](foundation/measurement/formatstyle/locale.md)
