Skip to main content

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

Did you find this page helpful?