---
title: locale
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/listformatstyle/locale
---

# locale

The locale to use when formatting items in the list.

## Declaration

```swift
var locale: Locale
```

## Discussion

Discussion A Locale instance is typically used to provide, format, and interpret information about and according to the user’s customs and preferences. Examples include ISO region and language codes, currency code, calendar, system of measurement, and decimal separator. The default value is autoupdatingCurrent. If you set this property to nil, the formatter resets to using autoupdatingCurrent.

## 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)
