localizedString(forCalendarIdentifier:)
Returns the localized string for the specified calendar identifier.
Declaration
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 as the identifier, produces the string "Gregorian Calendar".
See Also
Getting Display Information About a Locale
localizedString(forLocaleIdentifier:)localizedString(forCountryCode:)localizedString(forLanguageCode:)localizedString(forScriptCode:)localizedString(forVariantCode:)localizedString(forCollationIdentifier:)localizedString(forCollatorIdentifier:)localizedString(forCurrencyCode:)Locale Calendar Identifiers