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

# locale(_:)

Modifies the list format style to use the specified locale.

## Declaration

```swift
func locale(_ locale: Locale) -> ListFormatStyle<Style, Base>
```

## Parameters

- `locale`: The locale to use when formatting items in the list.

## Return Value

Return Value A list format style with the provided locale.

## See Also

### Modifying a list format style

- [width](foundation/listformatstyle/width-swift.property.md)
- [ListFormatStyle.Width](foundation/listformatstyle/width-swift.enum.md)
- [listType](foundation/listformatstyle/listtype-swift.property.md)
- [ListFormatStyle.ListType](foundation/listformatstyle/listtype-swift.enum.md)
- [locale](foundation/listformatstyle/locale.md)
