<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSLocale/localizedString(forLocaleIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLocale(im)localizedStringForLocaleIdentifier:"
  },
  "title" : "localizedString(forLocaleIdentifier:)"
}
-->

# localizedString(forLocaleIdentifier:)

Returns the localized string for the specified locale identifier.

```
func localizedString(forLocaleIdentifier localeIdentifier: String) -> String
```

## Parameters

`localeIdentifier`

The identifier for which you want the localized name.

## Return Value

The localized name of the locale.

## Discussion

For example, calling this method on an American English (`en_US`) locale, passing `"fr_FR"` for `localeIdentifier`, produces the string `"French (France)"`.

This method is equivalent to calling the [`displayName(forKey:value:)`](/documentation/Foundation/NSLocale/displayName(forKey:value:)) method passing the [`identifier`](/documentation/Foundation/NSLocale/Key/identifier) key and `localeIdentifier` value.

## See Also

[`availableLocaleIdentifiers`](/documentation/Foundation/NSLocale/availableLocaleIdentifiers)

The list of locale identifiers available on the system.



---

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)