Files
react-native-chat-ui/docs/localization.md
Alex Demchenko e90047512e Add docs
2021-03-24 00:00:44 +01:00

1.6 KiB

id, title
id title
localization 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

Name Type Description
attachmentButtonAccessibilityLabel string Accessibility label (hint) for the attachment button
emptyChatPlaceholder string Placeholder when there are no messages
fileButtonAccessibilityLabel string Accessibility label (hint) for the tap action on file message
inputPlaceholder string Placeholder for the text input
sendButtonAccessibilityLabel string Accessibility label (hint) for the send button
today string Today string
yesterday string Yesterday string