| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
FoundationModels.SupportsLocale
Returns a Boolean indicating whether the given locale is supported by the model.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| FoundationModels | 15.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "FoundationModels.SupportsLocale"; FoundationModel; localeIdentifier ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| FoundationModel | The identifier for the model. | $model |
| localeIdentifier | Which locale to query. | "de" |
Result
Returns 1, 0 or error.
Description
Returns a Boolean indicating whether the given locale is supported by the model.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.
Examples
Check whether english is supported:
Set Variable [ $EnglishSupported; Value: MBS( "FoundationModels.SupportsLocale"; "en" ) ]
See also
This function is free to use.
Created 26th September 2025, last changed 27th September 2025
FoundationModels.SupportedLanguages - FoundationModels.Transcript