Localization
With Sinch Chat, it's possible to provide your own translations for all texts.
To do that, use setTranslation method and provide a translation object with your custom values.
Here's an example:
SinchSdk.Chat.setTranslation({
initialScreen: {
title: 'Welcome to live chat',
description: 'We’re here to help you.',
},
});| Key | Default text |
|---|---|
| typeMessageHere | Type message here |
| emojiPickerTitle | Pick your emoji… |
| emojiPickerButton | Add emoji |
| imagePickerButton | Add image |
| endChatButton | End chat |
| continue | Continue |
| shareLocation | Share your location |
| document | Document |
| endChatPrompt | EndChatPrompt |
| initialScreen | InitialScreen |
endChatPrompt
| Key | Default text |
|---|---|
| title | End chat session? |
| description | Are you sure you want to end chat session? If you still need help please continue the conversation. |
| confirm | End chat |
| cancel | Continue |
initialScreen
| Key | Default text |
|---|---|
| title | Welcome to live chat support. |
| description | We are ready to help you. |
| startButton | Start Chat |