---
title: locale
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/measurement/attributedstyle/bytecount/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/measurement/attributedstyle/bytecount/allowedunits.md)
- [Measurement.AttributedStyle.ByteCount.Units](foundation/measurement/attributedstyle/bytecount/units.md)
- [spellsOutZero](foundation/measurement/attributedstyle/bytecount/spellsoutzero.md)
- [includesActualByteCount](foundation/measurement/attributedstyle/bytecount/includesactualbytecount.md)
- [style](foundation/measurement/attributedstyle/bytecount/style-swift.property.md)
- [Measurement.AttributedStyle.ByteCount.Style](foundation/measurement/attributedstyle/bytecount/style-swift.typealias.md)
