# StreamI18nService

The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](https://getstream.io/chat/docs/sdk/angular/v5/concepts/translation/) covers this topic in detail.

## Methods

### setTranslation

**setTranslation**(`lang?`, `overrides?`): `void`

Registers the translation to the [ngx-translate](https://github.com/ngx-translate/core) TranslateService.

#### Parameters

| Name         | Type     | Default value | Description                                                                       |
| :----------- | :------- | :------------ | :-------------------------------------------------------------------------------- |
| `lang`       | `string` | `'en'`        | The language key to register the translation to                                   |
| `overrides?` | `Object` | `undefined`   | An object which keys are translation keys, and the values are custom translations |

#### Returns

`void`

#### Defined in

[projects/stream-chat-angular/src/lib/stream-i18n.service.ts:19](https://github.com/GetStream/stream-chat-angular/blob/d65326c9379c93c53babc4e0ffe54519dd0712a9/projects/stream-chat-angular/src/lib/stream-i18n.service.ts#L19)


---

This page was last updated at 2026-08-07T20:37:39.262Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/angular/v5/services/StreamI18nService/](https://getstream.io/chat/docs/sdk/angular/v5/services/StreamI18nService/).