<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFBundleCopyLocalizationsForURL(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFBundleCopyLocalizationsForURL"
  },
  "title" : "CFBundleCopyLocalizationsForURL(_:)"
}
-->

# CFBundleCopyLocalizationsForURL(_:)

Returns an array containing the localizations for a bundle or executable at a particular location.

```
func CFBundleCopyLocalizationsForURL(_ url: CFURL!) -> CFArray!
```

## Parameters

`url`

The location of a bundle’s localizations.

## Return Value

An array containing the localizations available at `url`. Ownership follows the [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029).

## Discussion

For a directory URL, this is equivalent to calling the [`CFBundleCopyBundleLocalizations(_:)`](/documentation/CoreFoundation/CFBundleCopyBundleLocalizations(_:)) function on the corresponding bundle. For a plain file URL representing an unbundled application, this will attempt to determine its localizations using the [`kCFBundleLocalizationsKey`](/documentation/CoreFoundation/kCFBundleLocalizationsKey) and [`kCFBundleDevelopmentRegionKey`](/documentation/CoreFoundation/kCFBundleDevelopmentRegionKey) keys in the dictionary returned by [`CFBundleCopyInfoDictionaryForURL(_:)`](/documentation/CoreFoundation/CFBundleCopyInfoDictionaryForURL(_:)), or a `vers` resource if those are not present.

---

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)