---
title: "CFLocaleGetIdentifier(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cflocalegetidentifier(_:)"
---

# CFLocaleGetIdentifier(_:)

Returns the given locale’s identifier.

## Declaration

```swift
func CFLocaleGetIdentifier(_ locale: CFLocale!) -> CFLocaleIdentifier!
```

## Parameters

- `locale`: The locale object to examine.

## Return Value

Return Value A string representation of locale’s identifier. This may not be the same string that was used to create the locale—it may be canonicalized. Ownership follows the The Get Rule.

## See Also

### Getting Information About a Locale

- [CFLocaleCopyDisplayNameForPropertyValue(_:_:_:)](corefoundation/cflocalecopydisplaynameforpropertyvalue(_:_:_:).md)
- [CFLocaleGetValue(_:_:)](corefoundation/cflocalegetvalue(_:_:).md)
