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

NameTypeDefault valueDescription
langstring'en'The language key to register the translation to
overrides?ObjectundefinedAn object which keys are translation keys, and the values are custom translations

Returns

void

Defined in

lib/stream-i18n.service.ts:19

© Getstream.io, Inc. All Rights Reserved.