---
title: "localizedValue(forFieldKey:)"
framework: passkit
role: symbol
role_heading: Instance Method
path: "passkit/pkpass/localizedvalue(forfieldkey:)"
---

# localizedValue(forFieldKey:)

Returns the localized value for a specified field of the pass.

## Declaration

```swift
func localizedValue(forFieldKey key: String) -> Any?
```

## Parameters

- `key`: The field’s key as specified in the pass.

## Return Value

Return Value The localized value for the pass’s field.

## Discussion

Discussion If your app works with passes from arbitrary sources, such as an email client, it can’t use this method because PassKit doesn’t know the keys for those passes in advance. Use the other properties of this class, such as organizationName, instead.

## See Also

### Getting the display attributes

- [icon](passkit/pkpass/icon.md)
- [organizationName](passkit/pkpass/organizationname.md)
- [relevantDate](passkit/pkpass/relevantdate.md)
- [PKPassRelevantDate](passkit/pkpassrelevantdate.md)
