---
title: CFLocaleCopyPreferredLanguages()
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cflocalecopypreferredlanguages()
---

# CFLocaleCopyPreferredLanguages()

Returns the array of canonicalized language IDs that the user prefers.

## Declaration

```swift
func CFLocaleCopyPreferredLanguages() -> CFArray!
```

## Return Value

Return Value The array of canonicalized CFString language IDs that the current user prefers. Ownership follows the The Create Rule.
