<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFLocaleKey/countryCode",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Foundation",
      "CoreFoundation"
    ],
    "preciseIdentifier" : "c:@kCFLocaleCountryCode"
  },
  "title" : "countryCode"
}
-->

# countryCode

Specifies the locale country code.

```
static let countryCode: CFLocaleKey!
```

## Discussion

The corresponding value is a CFString containing an ISO county code, such as “`JP`”.

---

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)