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

# localizedString(forCurrencyCode:)

Returns the localized string for the specified currency code.

## Declaration

```swift
func localizedString(forCurrencyCode currencyCode: String) -> String?
```

## Parameters

- `currencyCode`: The code for the currency whose name you want.

## Return Value

Return Value The localized name of the currency.

## Discussion

Discussion For example, calling this method on an American English (en_US) locale, passing "JPY" for currencyCode, produces the string "Japanese Yen". This method is equivalent to calling the displayName(forKey:value:) method passing the currencyCode key and currencyCode 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(forCollationIdentifier:)](foundation/nslocale/localizedstring(forcollationidentifier:).md)
- [localizedString(forCollatorIdentifier:)](foundation/nslocale/localizedstring(forcollatoridentifier:).md)
- [localizedString(forCalendarIdentifier:)](foundation/nslocale/localizedstring(forcalendaridentifier:).md)
- [Locale Calendar Identifiers](foundation/locale-calendar-identifiers.md)
