---
title: "supportsLocale(_:)"
framework: foundationmodels
role: symbol
role_heading: Instance Method
path: "foundationmodels/privatecloudcomputelanguagemodel/supportslocale(_:)"
---

# supportsLocale(_:)

Returns a Boolean indicating whether the given locale is supported by the model.

## Declaration

```swift
final func supportsLocale(_ locale: Locale = Locale.current) -> Bool
```

## Discussion

Discussion Use this method over supportedLanguages to check whether the given locale qualifies a user for using this model, as this method will take into consideration language fallbacks.

## See Also

### Handling language and locales

- [supportedLanguages](foundationmodels/privatecloudcomputelanguagemodel/supportedlanguages.md)
