<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplicationDelegate/applicationShouldAutomaticallyLocalizeKeyCommands(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIApplicationDelegate(im)applicationShouldAutomaticallyLocalizeKeyCommands:"
  },
  "title" : "applicationShouldAutomaticallyLocalizeKeyCommands(_:)"
}
-->

# applicationShouldAutomaticallyLocalizeKeyCommands(_:)

Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards.

```
optional func applicationShouldAutomaticallyLocalizeKeyCommands(_ application: UIApplication) -> Bool
```

## Parameters

`application`

The singleton app object.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to enable automatic shortcut localization for all app-specific menus, or <doc://com.apple.documentation/documentation/Swift/false> to handle shortcut localization yourself.

## Discussion

A keyboard shortcut you specify in one language might be difficult or impossible to reproduce on a keyboard with a different character set or layout. Localized keyboards sometimes rearrange punctuation marks or replace them altogether to make room for a language’s required characters. The new locations of those keys might make it difficult to use your current shortcuts. To ensure your shortcuts are always usable, the system can automatically remap shortcuts, as needed, to accommodate the connected keyboard.

If you don’t implement this method, or if you implement it and return <doc://com.apple.documentation/documentation/Swift/true>, the system automatically remaps all app-specific key-command shortcuts that are unreachable on the current keyboard. The system doesn’t remap shortcuts when the input keys have identical positions on both keyboards, or when a shortcut is still easily reachable on the current keyboard. The remapping is transparent to your app.

If you already localize your app’s key-command shortcuts for different languages, or if you allow someone to customize your app’s shortcuts, you can return <doc://com.apple.documentation/documentation/Swift/false> to disable the automatic remapping behavior. When you return <doc://com.apple.documentation/documentation/Swift/false>, the system doesn’t change your app’s shortcuts. Instead, you are responsible to make any required changes to support localized keyboards.

During the final activation of your app at launch time, the app object calls this method once to record your app’s response.

---

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)