---
title: "supportsLocale(_:)"
framework: foundationmodels
role: symbol
role_heading: Instance Method
path: "foundationmodels/systemlanguagemodel/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
```

## Mentioned in

Supporting languages and locales with Foundation Models

## 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

### Inspecting model capabilities

- [contextSize](foundationmodels/systemlanguagemodel/contextsize.md)
- [supportedLanguages](foundationmodels/systemlanguagemodel/supportedlanguages.md)
