| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Translation.DetectLanguage
Detects the language of a given text.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Translation | 16.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "Translation.DetectLanguage"; Text ) More
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!" )
Example result: en
Example result: en
Try it for a German text:
MBS( "Translation.DetectLanguage"; "Nur ein kleiner Test" )
Example result: de
Example result: de
Try with Italian:
MBS( "Translation.DetectLanguage"; "Ciao" ) &
" " &
MBS( "Translation.DetectLanguage"; "Ciao bella" )
// one word is not enough to detect Italia
Example result: vi it
" " &
MBS( "Translation.DetectLanguage"; "Ciao bella" )
// one word is not enough to detect Italia
Example result: vi it
Try with English:
MBS( "Translation.DetectLanguage"; "Hello" ) &
" " &
MBS( "Translation.DetectLanguage"; "Hello people" )
// one word is not enough to detect English
Example result: it en
" " &
MBS( "Translation.DetectLanguage"; "Hello people" )
// one word is not enough to detect English
Example result: it en
See also
Release notes
- Version 16.1
- Added Translation.DetectLanguage function.
Blog Entries
This function checks for a license.
Created 16th January 2026, last changed 16th January 2026