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

# localizedString(forLocaleIdentifier:)

Returns the localized string for the specified locale identifier.

## Declaration

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

## Parameters

- `localeIdentifier`: The identifier for which you want the localized name.

## Return Value

Return Value The localized name of the locale.

## Discussion

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:) method passing the identifier key and localeIdentifier value.

## See Also

### Related Documentation

- [availableLocaleIdentifiers](foundation/nslocale/availablelocaleidentifiers.md)

### Getting Display Information About a Locale

- [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(forCollationIdentifier:)](foundation/nslocale/localizedstring(forcollationidentifier:).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)
