<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNSocialProfile/localizedString(forKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNSocialProfile(cm)localizedStringForKey:"
  },
  "title" : "localizedString(forKey:)"
}
-->

# localizedString(forKey:)

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

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

## Parameters

`key`

Key for which to get the localized property name. Specify a key name such as [`CNSocialProfileUsernameKey`](/documentation/Contacts/CNSocialProfileUsernameKey).

## Return Value

The localized name of the property.

---

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)