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

# HIDDeviceLocalizationCode

The localization codes that some HID devices declare to specify conformance to a certain format or language.

```
enum HIDDeviceLocalizationCode
```

## Overview

This maps to the optional `bCountryCode` value in the HID descriptor.

For more details, see [Human Interface Devices (HID) Specifications and Tools](https://www.usb.org/hid).

## Topics

### Enumeration Cases

[`case arabic`](/documentation/CoreHID/HIDDeviceLocalizationCode/arabic)

This maps to Arabic in the HID specification.

[`case belgium`](/documentation/CoreHID/HIDDeviceLocalizationCode/belgium)

This maps to Belgian in the HID specification.

[`case canada`](/documentation/CoreHID/HIDDeviceLocalizationCode/canada)

This maps to Canadian-bilingual in the HID specification.

[`case canadaFrench`](/documentation/CoreHID/HIDDeviceLocalizationCode/canadaFrench)

This maps to Canadian-French in the HID specification.

[`case chineseZhuyin`](/documentation/CoreHID/HIDDeviceLocalizationCode/chineseZhuyin)

This maps to Taiwan in the HID specification.

[`case czechia`](/documentation/CoreHID/HIDDeviceLocalizationCode/czechia)

This maps to Czech Republic in the HID specification.

[`case denmark`](/documentation/CoreHID/HIDDeviceLocalizationCode/denmark)

This maps to Danish in the HID specification.

[`case finland`](/documentation/CoreHID/HIDDeviceLocalizationCode/finland)

This maps to Finnish in the HID specification.

[`case france`](/documentation/CoreHID/HIDDeviceLocalizationCode/france)

This maps to France in the HID specification.

[`case germany`](/documentation/CoreHID/HIDDeviceLocalizationCode/germany)

This maps to German in the HID specification.

[`case greece`](/documentation/CoreHID/HIDDeviceLocalizationCode/greece)

This maps to Greek in the HID specification.

[`case hebrew`](/documentation/CoreHID/HIDDeviceLocalizationCode/hebrew)

This maps to Hebrew in the HID specification.

[`case hungary`](/documentation/CoreHID/HIDDeviceLocalizationCode/hungary)

This maps to Hungary in the HID specification.

[`case italy`](/documentation/CoreHID/HIDDeviceLocalizationCode/italy)

This maps to Italian in the HID specification.

[`case japan`](/documentation/CoreHID/HIDDeviceLocalizationCode/japan)

This maps to Japan (Katakana) in the HID specification.

[`case korea`](/documentation/CoreHID/HIDDeviceLocalizationCode/korea)

This maps to Korean in the HID specification.

[`case latinAmerica`](/documentation/CoreHID/HIDDeviceLocalizationCode/latinAmerica)

This maps to Latin America in the HID specification.

[`case netherlands`](/documentation/CoreHID/HIDDeviceLocalizationCode/netherlands)

This maps to Netherlands/Dutch in the HID specification.

[`case norway`](/documentation/CoreHID/HIDDeviceLocalizationCode/norway)

This maps to Norwegian in the HID specification.

[`case persian`](/documentation/CoreHID/HIDDeviceLocalizationCode/persian)

This maps to Persian (Farsi) in the HID specification.

[`case poland`](/documentation/CoreHID/HIDDeviceLocalizationCode/poland)

This maps to Poland in the HID specification.

[`case portugal`](/documentation/CoreHID/HIDDeviceLocalizationCode/portugal)

This maps to Portuguese in the HID specification.

[`case russia`](/documentation/CoreHID/HIDDeviceLocalizationCode/russia)

This maps to Russia in the HID specification.

[`case slovakia`](/documentation/CoreHID/HIDDeviceLocalizationCode/slovakia)

This maps to Slovakia in the HID specification.

[`case spain`](/documentation/CoreHID/HIDDeviceLocalizationCode/spain)

This maps to Spanish in the HID specification.

[`case sweden`](/documentation/CoreHID/HIDDeviceLocalizationCode/sweden)

This maps to Swedish in the HID specification.

[`case switzerland`](/documentation/CoreHID/HIDDeviceLocalizationCode/switzerland)

This maps to Switzerland in the HID specification.

[`case switzerlandFrench`](/documentation/CoreHID/HIDDeviceLocalizationCode/switzerlandFrench)

This maps to Swiss/French in the HID specification.

[`case switzerlandGerman`](/documentation/CoreHID/HIDDeviceLocalizationCode/switzerlandGerman)

This maps to Swiss/German in the HID specification.

[`case turkeyQWERTY`](/documentation/CoreHID/HIDDeviceLocalizationCode/turkeyQWERTY)

This maps to Turkish-Q in the HID specification.

[`case turkeyStandard`](/documentation/CoreHID/HIDDeviceLocalizationCode/turkeyStandard)

This maps to Turkish-F in the HID specification.

[`case unitedKingdom`](/documentation/CoreHID/HIDDeviceLocalizationCode/unitedKingdom)

This maps to UK in the HID specification.

[`case unitedStates`](/documentation/CoreHID/HIDDeviceLocalizationCode/unitedStates)

This maps to US in the HID specification.

[`case unitedStatesISO`](/documentation/CoreHID/HIDDeviceLocalizationCode/unitedStatesISO)

This maps to International (ISO) in the HID specification.

[`case unsupported`](/documentation/CoreHID/HIDDeviceLocalizationCode/unsupported)

This maps to Not Supported in the HID specification.

[`case yugoslavia`](/documentation/CoreHID/HIDDeviceLocalizationCode/yugoslavia)

This maps to Yugoslavia in the HID specification.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)