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

# localizedString(forCollationIdentifier:)

Returns the localized string for the specified collation identifier.

## Declaration

```swift
func localizedString(forCollationIdentifier collationIdentifier: String) -> String?
```

## Parameters

- `collationIdentifier`: The identifier for the collation whose name you want.

## Return Value

Return Value The localized name for the collation.

## Discussion

Discussion For example, calling this method on an American English (en_US) locale, passing "phonebook" for collationIdentifier, produces the string "Phonebook Sort Order". This method is equivalent to calling the displayName(forKey:value:) method passing the collationIdentifier key and collationIdentifier value.

## 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(forCollatorIdentifier:)](foundation/nslocale/localizedstring(forcollatoridentifier:).md)
- [localizedString(forCurrencyCode:)](foundation/nslocale/localizedstring(forcurrencycode:).md)
- [localizedString(forCalendarIdentifier:)](foundation/nslocale/localizedstring(forcalendaridentifier:).md)
- [Locale Calendar Identifiers](foundation/locale-calendar-identifiers.md)
