> For the complete documentation index, see [llms.txt](https://sryvkver.gitbook.io/cobi.bike/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryvkver.gitbook.io/cobi.bike/namespaces/app/language.md).

# Language

The language the phone is set to.\
Used to localize all content presented to the user. Represented according to RFC 5646.

Example: "en-US", "de-CH".

{% tabs %}
{% tab title="Typescript" %}

```typescript
const onLanguageChange = (language: string, timestamp?: Date) => {
    console.log(language, timestamp);
};


COBI.app.language.subscribe(onThemeChange);
COBI.app.language.unsubscribe(onThemeChange);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const onLanguageChange = (language, timestamp) => {
    console.log(language, timestamp);
};


COBI.app.language.subscribe(onThemeChange);
COBI.app.language.unsubscribe(onThemeChange);
```

{% endtab %}
{% endtabs %}
