WindowsOCR.IsLanguageSupported
------------------------------

Whether a language is supported for OCR.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsOCR](component_WindowsOCR.md) | [13.1](newinversion131.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WindowsOCR.IsLanguageSupported"; LanguageTag ) 

**MBS**( **"WindowsOCR.IsLanguageSupported";** /\* Whether a language is supported for OCR. \*/  
**$LanguageTag**) /\* The language specification.  
Can be language tag, display name or localized name of the language.e.g. "de-DE" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LanguageTag | The language specification.   Can be language tag, display name or localized name of the language. | "de-DE" |

### Result

Returns 0, 1 or error.

### Description

Whether a language is supported for OCR.  
Returns 1 if a specified language can be resolved to any of the available OCR languages.  
### Examples

Try it:

 If \[ MBS ( "WindowsOCR.IsLanguageSupported"; "de-DE" ) = 1 \]   
 Show Custom Dialog \[ "We can recognize German text." \]   
Else  
 Show Custom Dialog \[ "We can't recognize German text." \]   
End If  
This function is free to use.

Created 22nd January 2023 , last changed 7th May 2023

  
[WindowsOCR.CurrentInputMethodLanguageTag](WindowsOCRCurrentInputMethodLanguageTag.md) - [WindowsOCR.List](WindowsOCRList.md)

[HTML Version](WindowsOCRIsLanguageSupported.shtml)