---
title: "CFBundleCopyLocalizationsForURL(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundlecopylocalizationsforurl(_:)"
---

# CFBundleCopyLocalizationsForURL(_:)

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

## Declaration

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

## Parameters

- `url`: The location of a bundle’s localizations.

## Return Value

Return Value An array containing the localizations available at url. Ownership follows the The Create Rule.

## Discussion

Discussion For a directory URL, this is equivalent to calling the 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 and kCFBundleDevelopmentRegionKey keys in the dictionary returned by CFBundleCopyInfoDictionaryForURL(_:), or a vers resource if those are not present.

## See Also

### Managing Localizations

- [CFBundleCopyBundleLocalizations(_:)](corefoundation/cfbundlecopybundlelocalizations(_:).md)
- [CFBundleCopyLocalizedString(_:_:_:_:)](corefoundation/cfbundlecopylocalizedstring(_:_:_:_:).md)
- [CFBundleCopyLocalizationsForPreferences(_:_:)](corefoundation/cfbundlecopylocalizationsforpreferences(_:_:).md)
- [CFBundleCopyPreferredLocalizationsFromArray(_:)](corefoundation/cfbundlecopypreferredlocalizationsfromarray(_:).md)
