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

# locale

The locale to use to format the numeric part of the byte count.

## Declaration

```swift
var locale: Locale { get set }
```

## Discussion

Discussion To change the format style’s locale, use locale(_:).

## See Also

### Accessing style properties

- [allowedUnits](foundation/bytecountformatstyle/allowedunits.md)
- [ByteCountFormatStyle.Units](foundation/bytecountformatstyle/units.md)
- [spellsOutZero](foundation/bytecountformatstyle/spellsoutzero.md)
- [includesActualByteCount](foundation/bytecountformatstyle/includesactualbytecount.md)
