<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSArray/description(withLocale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSArray(im)descriptionWithLocale:"
  },
  "title" : "description(withLocale:)"
}
-->

# description(withLocale:)

Returns a string that represents the contents of the array, formatted as a property list.

```
func description(withLocale locale: Any?) -> String
```

## Parameters

`locale`

An `NSLocale` object or an `NSDictionary` object that specifies options used for formatting each of the array’s elements (where recognized). Specify `nil` if you don’t want the elements formatted.

## Return Value

A string that represents the contents of the array, formatted as a property list.

## Discussion

For a description of how `locale` is applied to each element in the receiving array, see [`description(withLocale:indent:)`](/documentation/Foundation/NSArray/description(withLocale:indent:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)