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