Translation.SourceLanguage
--------------------------

Queries the input language to translate from.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Translation](component_Translation.md) | [16.0](newinversion160.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Translation.SourceLanguage"; SessionID ) 

**MBS**( **"Translation.SourceLanguage";** /\* Queries the input language to translate from. \*/  
**$SessionID**) /\* The translation session.e.g. $session \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SessionID | The translation session. | $session |

### Result

Returns langugae identifier or error.

### Description

Queries the input language to translate from.  
If this value is set to empty, the session tries to identify the source language automatically. If it can't identify the language, it prompts the person to choose the source language to use for the translation.  
  
Note: This value doesn't update after translation. To see what source language the session uses for a particular translation, check the response sourceLanguage property.  
### Examples

Try the function and see what it returns:

 Set Variable \[ $session ; Value: MBS ( "[Translation.StartSession](TranslationStartSession.md)"; "de"; "en") \]  
Show Custom Dialog \[ "r" ; MBS ( "Translation.SourceLanguage"; $session ) &amp; " -&gt; " &amp; MBS ( "[Translation.TargetLanguage](TranslationTargetLanguage.md)"; $sessio … \]  
Set Variable \[ $r ; Value: MBS ( "[Translation.Release](TranslationRelease.md)"; $session ) \]  
### See also

- [Translation.DetectLanguage](TranslationDetectLanguage.md)
- [Translation.Release](TranslationRelease.md)
- [Translation.StartSession](TranslationStartSession.md)
- [Translation.SupportedLanguages](TranslationSupportedLanguages.md)
- [Translation.TargetLanguage](TranslationTargetLanguage.md)

This function is free to use.

Created 24th November 2025 , last changed 24th November 2025

  
[Translation.ReleaseAll](TranslationReleaseAll.md) - [Translation.StartSession](TranslationStartSession.md)

[HTML Version](TranslationSourceLanguage.shtml)