---
title: "localizedString(forCalendarIdentifier:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nslocale/localizedstring(forcalendaridentifier:)"
---

# localizedString(forCalendarIdentifier:)

Returns the localized string for the specified calendar identifier.

## Declaration

```swift
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

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

## Discussion

Discussion For example, on an American English (en_US) locale, passing gregorian as the identifier, produces the string "Gregorian Calendar".

## See Also

### Getting Display Information About a Locale

- [localizedString(forLocaleIdentifier:)](foundation/nslocale/localizedstring(forlocaleidentifier:).md)
- [localizedString(forCountryCode:)](foundation/nslocale/localizedstring(forcountrycode:).md)
- [localizedString(forLanguageCode:)](foundation/nslocale/localizedstring(forlanguagecode:).md)
- [localizedString(forScriptCode:)](foundation/nslocale/localizedstring(forscriptcode:).md)
- [localizedString(forVariantCode:)](foundation/nslocale/localizedstring(forvariantcode:).md)
- [localizedString(forCollationIdentifier:)](foundation/nslocale/localizedstring(forcollationidentifier:).md)
- [localizedString(forCollatorIdentifier:)](foundation/nslocale/localizedstring(forcollatoridentifier:).md)
- [localizedString(forCurrencyCode:)](foundation/nslocale/localizedstring(forcurrencycode:).md)
- [Locale Calendar Identifiers](foundation/locale-calendar-identifiers.md)
