---
title: locale
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsimage/locale
---

# locale

The image’s preferred locale for resolving representations, if one has been specified using -imageWithLocale:. Otherwise, nil.

## Declaration

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

## See Also

### Localizing Images

- [withLocale(_:)](appkit/nsimage/withlocale(_:).md)
