Skip to content

Commit 9a03668

Browse files
committed
feat: add optional aria labels to customTranslations for improved accessibility
1 parent 4e661d4 commit 9a03668

File tree

1 file changed

+39
-13
lines changed

1 file changed

+39
-13
lines changed

docs/embedding.md

+39-13
Original file line numberDiff line numberDiff line change
@@ -654,19 +654,45 @@ interface IWebchatSettings {
654654
};
655655
};
656656
// Custom translations for texts that are not possible to configure in endpoint editor
657-
customTranslations: {
658-
network_error: string;
659-
no_network: string;
660-
reconnecting: string;
661-
reconnect: string;
662-
conversations_options: string;
663-
delete_all_conversations: string;
664-
delete_all_conversations_confirmation: string;
665-
delete_conversation: string;
666-
delete_conversation_confirmation: string;
667-
delete: string;
668-
delete_anyway: string;
669-
cancel: string;
657+
customTranslations?: {
658+
network_error?: string;
659+
no_network?: string;
660+
reconnecting?: string;
661+
reconnect?: string;
662+
conversations_options?: string;
663+
delete_all_conversations?: string;
664+
delete_all_conversations_confirmation?: string;
665+
delete_conversation?: string;
666+
delete_conversation_confirmation?: string;
667+
delete?: string;
668+
delete_anyway?: string;
669+
cancel?: string;
670+
ariaLabels?: {
671+
branding?: string;
672+
unreadMessages?: string;
673+
scrollToBottom?: string;
674+
close?: string;
675+
togglePersistentMenu?: string;
676+
addAttachment?: string;
677+
messageToSend?: string;
678+
speechToText?: string;
679+
sendMessage?: string;
680+
removeFileAttachment?: string;
681+
closeWarning?: string;
682+
goBack?: string;
683+
deleteAllConversations?: string;
684+
chatOptions?: string;
685+
minimizeChat?: string;
686+
closeChat?: string;
687+
openChat?: string;
688+
unreadMessageSingularText?: string;
689+
unreadMessagePluralText?: string;
690+
closeTeaserMessage?: string;
691+
opensInNewTab?: string;
692+
thumbsUp?: string;
693+
thumbsDown?: string;
694+
openConversation?: string;
695+
};
670696
};
671697

672698
// Additional Settings to configure the webchat widget behavior

0 commit comments

Comments
 (0)