<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPass/localizedValue(forFieldKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPass(im)localizedValueForFieldKey:"
  },
  "title" : "localizedValue(forFieldKey:)"
}
-->

# localizedValue(forFieldKey:)

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

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

## Parameters

`key`

The field’s key as specified in the pass.

## Return Value

The localized value for the pass’s field.

## 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`](/documentation/PassKit/PKPass/organizationName), instead.

---

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)