translateConversations property

dynamic translateConversations
getter/setter pair

TalkJS can translate conversations to the current user's locale using Google Translate. This option specifies which conversations should be translated in this UI. You can pass a boolean to enable/disable translation for all conversations, "auto" to enable translation on conversations where users have different locales, or you can pass an array of {@link ConversationBuilder}s or conversation Ids to be translated. This feature is only available on the Premium plan and above. Make sure you add your Google Translate API key in the dashboard.

Implementation

external dynamic /*bool | "auto" | List<String> | List<ConversationBuilder>*/ translateConversations;