---
title: scriptCode
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cflocalekey/scriptcode
---

# scriptCode

Specifies the locale script code.

## Declaration

```swift
static let scriptCode: CFLocaleKey!
```

## Discussion

Discussion The corresponding value is a CFString containing a Unicode script tag (strictly, an ISO 15924 script tag). Usually this is empty (it is for “ja_JP”). It may be present for locales where a script must be specified, for example “uz-Latn-UZ” vs. “uz-Cyrl-UZ” for Uzbek in Latin vs. Cyrillic (in the first case the script code is “Latn”, and in the second it is “Cyrl”).

## See Also

### Constants

- [identifier](corefoundation/cflocalekey/identifier.md)
- [languageCode](corefoundation/cflocalekey/languagecode.md)
- [countryCode](corefoundation/cflocalekey/countrycode.md)
- [variantCode](corefoundation/cflocalekey/variantcode.md)
- [exemplarCharacterSet](corefoundation/cflocalekey/exemplarcharacterset.md)
- [calendarIdentifier](corefoundation/cflocalekey/calendaridentifier.md)
- [calendar](corefoundation/cflocalekey/calendar.md)
- [collationIdentifier](corefoundation/cflocalekey/collationidentifier.md)
- [usesMetricSystem](corefoundation/cflocalekey/usesmetricsystem.md)
- [measurementSystem](corefoundation/cflocalekey/measurementsystem.md)
- [decimalSeparator](corefoundation/cflocalekey/decimalseparator.md)
- [groupingSeparator](corefoundation/cflocalekey/groupingseparator.md)
- [currencySymbol](corefoundation/cflocalekey/currencysymbol.md)
- [currencyCode](corefoundation/cflocalekey/currencycode.md)
- [collatorIdentifier](corefoundation/cflocalekey/collatoridentifier.md)
