| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Translation.TargetLanguage
Queries output language to translate into.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Translation | 16.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "Translation.TargetLanguage"; SessionID ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| SessionID | The translation session. | $session |
Result
Returns langugae identifier or error.
Description
Queries output language to translate into.If this value is set to nil, the session chooses an optimal language to translate into based on the sourceLanguage and the person's preferred languages.
Note: This value doesn't update after translation. To see what target language the session uses for a particular translation, check the response targetLanguage property.
Examples
Try the function and see what it returns:
Set Variable [ $session ; Value: MBS( "Translation.StartSession"; "de"; "en") ]
Show Custom Dialog [ "r" ; MBS( "Translation.SourceLanguage"; $session ) & " -> " & MBS( "Translation.TargetLanguage"; $sessio… ]
Set Variable [ $r ; Value: MBS( "Translation.Release"; $session) ]
Show Custom Dialog [ "r" ; MBS( "Translation.SourceLanguage"; $session ) & " -> " & MBS( "Translation.TargetLanguage"; $sessio… ]
Set Variable [ $r ; Value: MBS( "Translation.Release"; $session) ]
See also
This function is free to use.
Created 24th November 2025, last changed 24th November 2025
Translation.SupportedLanguages - Translation.TranslateString
MarkDown version: TranslationTargetLanguage.md