Info:
This is documentation for Stream Chat Angular SDK v5, which is no longer actively maintained. For up-to-date documentation, see the latest version (v7).

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

projects/stream-chat-angular/src/lib/stream-i18n.service.ts:19

Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat Angular v5: <Your Question>