---
title: "localizedString(forKey:)"
framework: contacts
role: symbol
role_heading: Type Method
path: "contacts/cnsocialprofile/localizedstring(forkey:)"
---

# localizedString(forKey:)

Returns the localized name of the property for the specified key.

## Declaration

```swift
class func localizedString(forKey key: String) -> String
```

## Parameters

- `key`: Key for which to get the localized property name. Specify a key name such as doc://com.apple.contacts/documentation/Contacts/CNSocialProfileUsernameKey.

## Return Value

Return Value The localized name of the property.

## See Also

### Getting Localized User Profile Information

- [CNSocialProfileUsernameKey](contacts/cnsocialprofileusernamekey.md)
- [CNSocialProfileServiceKey](contacts/cnsocialprofileservicekey.md)
- [CNSocialProfileURLStringKey](contacts/cnsocialprofileurlstringkey.md)
- [CNSocialProfileUserIdentifierKey](contacts/cnsocialprofileuseridentifierkey.md)
