This is documentation for
Stream Chat Angular SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).
StreamI18nService
The StreamI18nService
can be used to customize the labels of the chat UI. Our translation guide covers this topic in detail.
Methods
setTranslation
▸ setTranslation(lang?
, overrides?
): void
Registers the translation to the ngx-translate 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
On this page: