Translation.DetectLanguage
--------------------------

Detects the language of a given text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Translation](component_Translation.md) | [16.1](newinversion161.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "Translation.DetectLanguage"; Text ) 

**MBS**( **"Translation.DetectLanguage";** /\* Detects the language of a given text. \*/  
**$Text**) /\* The text to analyze.  
Needs be long enough to make it correct.   
One or two words may not be enough!e.g. "Greetings to everyone here!" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text to analyze.   Needs be long enough to make it correct.    One or two words may not be enough! | "Greetings to everyone here!" |

### Result

Returns language code or error.

### Description

Detects the language of a given text.  
Returns the language identifier detected. Uses Apple's frameworks which use probabilities.  
### Examples

Try it for an English text:

 MBS ( "Translation.DetectLanguage"; "Greetings to everyone here!" )  
<small>  
Example result: en</small>Try it for a German text:

 MBS ( "Translation.DetectLanguage"; "Nur ein kleiner Test" )  
<small>  
Example result: de</small>Try with Italian:

 MBS ( "Translation.DetectLanguage"; "Ciao" ) &amp;   
" " &amp;  
MBS ( "Translation.DetectLanguage"; "Ciao bella" )  
// one word is not enough to detect Italia  
<small>  
Example result: vi it</small>Try with English:

 MBS ( "Translation.DetectLanguage"; "Hello" ) &amp;   
" " &amp;  
MBS ( "Translation.DetectLanguage"; "Hello people" )  
// one word is not enough to detect English  
<small>  
Example result: it en</small>### See also

- [Translation.SourceLanguage](TranslationSourceLanguage.md)
- [Translation.TargetLanguage](TranslationTargetLanguage.md)

### Release notes

- **Version 16.1**
    - Added [Translation.DetectLanguage](https://www.mbsplugins.eu/TranslationDetectLanguage.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin 16.1 News](https://www.mbsplugins.de/archive/2026-03-31/MBS_FileMaker_Plugin_161_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 16.1 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-03-17/Neues_MBS_Plugin_161_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-03-17/MBS_FileMaker_Plugin_161_for_C/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr1](https://www.mbsplugins.de/archive/2026-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th January 2026 , last changed 16th January 2026

  
[Translation.CanRequestDownloads](TranslationCanRequestDownloads.md) - [Translation.IsReady](TranslationIsReady.md)

[HTML Version](TranslationDetectLanguage.shtml)