<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentSystemContext/locale",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents19IntentSystemContextV6locale10Foundation6LocaleVvp"
  },
  "title" : "locale"
}
-->

# locale

The locale in which the system performs the app intent.

```
var locale: Locale { get }
```

## Discussion

The locale for a person’s request can differ from the app’s current locale in a few cases:

- A person makes a request in a language that’s different from the system’s locale.
- A person creates a custom shortcut in the Shortcuts app that uses a locale different from their system locale.

Where possible, use `LocalizedStringResource` APIs to localize app intents and let the system choose the right locale as needed.
If localized string resources aren’t an option — for example, when you generate content on a server or on device using generative models and
can’t easily localize results in the app — use the [`locale`](/documentation/AppIntents/IntentSystemContext/locale) property as context to provide intent results that match the person’s locale.

---

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)