Skip to main content

Localization

You can pass the locale prop to the <Chat /> component. This locale will be passed to dayjs, so we can localize dates. To see all supported locales check function initLocale in this file. Additionally, locale prop will be used to localize a couple of texts defined here. You can override texts regardless of the locale by passing l10nOverride prop.

<Chat
l10nOverride={{ inputPlaceholder: 'Here' }}
locale='en'
/>

Types#

NameTypeDescription
attachmentButtonAccessibilityLabelstringAccessibility label (hint) for the attachment button
emptyChatPlaceholderstringPlaceholder when there are no messages
fileButtonAccessibilityLabelstringAccessibility label (hint) for the tap action on file message
inputPlaceholderstringPlaceholder for the text input
sendButtonAccessibilityLabelstringAccessibility label (hint) for the send button
todaystringToday string
yesterdaystringYesterday string