# StreamI18nService

> **Info:** This is release candidate documentation for **Stream Chat Angular SDK v8**. For the latest stable version, see the [latest version (v7)](https://getstream.io/chat/docs/sdk/angular/).

The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](https://getstream.io/chat/docs/sdk/angular/v8/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/8ed7ea67ea3deb96c2ae7fcccfd82bd32ad7f184/projects/stream-chat-angular/src/lib/stream-i18n.service.ts#L19)

---

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