---
id: "P:cAlgo.API.LanguageChangedEventArgs.Language"
kind: "property"
type: "T:cAlgo.API.LanguageChangedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/LanguageChangedEventArgs/Language/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# LanguageChangedEventArgs.Language

Member of [LanguageChangedEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/LanguageChangedEventArgs/index.md).

## Language

Gets the language.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public Language Language {get;}
```

Python:

```python
languageChangedEventArgs.Language: Language
```

### Returns

`Language` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
protected override void OnStart()
{
    Application.LanguageChanged += OnLanguageChanged;
}

private void OnLanguageChanged(LanguageChangedEventArgs args)
{
    var buttonText = args.Language.CultureName.StartsWith("es") ? "Comprar" : "Buy";
    Print("Using button text: {0}", buttonText);
}
```

Python:

```python
def on_start(self):
    api.Application.LanguageChanged += self.on_language_changed

def on_language_changed(self, args):
    button_text = "Comprar" if args.Language.CultureName.startswith("es") else "Buy"
    api.Print(f"Using button text: {button_text}")
```

