<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSLocale/localizedString(forCalendarIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLocale(im)localizedStringForCalendarIdentifier:"
  },
  "title" : "localizedString(forCalendarIdentifier:)"
}
-->

# localizedString(forCalendarIdentifier:)

Returns the localized string for the specified calendar identifier.

```
func localizedString(forCalendarIdentifier calendarIdentifier: String) -> String?
```

## Parameters

`calendarIdentifier`

The calendar identifier indicating the calendar whose name you want. Use one of the values listed in `Calendar Identifiers`.

## Return Value

A human readable string suitable for display to the user corresponding to the given calendar.

## Discussion

For example, on an American English (`en_US`) locale, passing [`gregorian`](/documentation/Foundation/NSCalendar/Identifier/gregorian) as the identifier, produces the string `"Gregorian Calendar"`.

---

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)