---
title: reconcilePreferredLanguages()
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: backgroundassets/assetpackmanager/reconcilepreferredlanguages()
---

# reconcilePreferredLanguages()

Reconciles the set of locally available asset packs with the current preferred languages.

## Declaration

```swift
func reconcilePreferredLanguages() async throws
```

## Mentioned in

Reducing download and storage demands with localized asset packs

## Discussion

Discussion This method downloads any missing localized asset packs, waits for those downloads to finish, and removes any unneeded ones. If you’ve overridden the preferred languages by setting resolvedLanguage, then this method will respect that. It won’t remove any localized asset packs that you’ve downloaded manually. note: When the set of locally available asset packs can’t be reconciled with the preferred languages. When the thrown error is an instance of AssetPackManager.LocalAvailabilityError, it provides information about asset packs for which the system successfully ensured local availability and those for which the system couldn’t ensure local availability, with an underlying error for each failure.

## See Also

### Inspecting language support

- [locallyAvailableLanguages](backgroundassets/assetpackmanager/locallyavailablelanguages.md)
- [resolvedLanguage](backgroundassets/assetpackmanager/resolvedlanguage.md)
