<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDDeviceClient/localizationCode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID15HIDDeviceClientC16localizationCodeAA0c12LocalizationF0Ovp"
  },
  "title" : "localizationCode"
}
-->

# localizationCode

A location code that specifies the HID compliant localization code, if there is one.

```
var localizationCode: HIDDeviceLocalizationCode { get }
```

## Discussion

The localization code can specify for which specific format the device is localized. For example, a Japanese (JIS) keyboard should declare the [`HIDDeviceLocalizationCode.japan`](/documentation/CoreHID/HIDDeviceLocalizationCode/japan) localization code.

---

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)