Skip to content

v5.7.0

Latest

Choose a tag to compare

@suraj-chauhan-cometchat suraj-chauhan-cometchat released this 01 Dec 09:54
v5.7.0
2ef3351

v5.7.0

New

  • Added right-to-left (RTL) layout support for Arabic and other RTL languages. Set the direction for the whole UI Kit with the layoutDirection setting in UIKitSettings (auto, ltr or rtl), or change it at runtime with CometChatUIKit.setLayoutDirection(). Override it for a single component with the layoutDirection prop on CometChatConversations, CometChatUsers, CometChatGroups, CometChatGroupMembers, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer, CometChatCompactMessageComposer, CometChatThreadHeader, CometChatMessageInformation, CometChatPinnedMessages, CometChatSavedMessages, CometChatSearch, CometChatNotificationFeed, CometChatAIAssistantChatHistory, CometChatCallButtons, CometChatCallLogs, CometChatIncomingCall, and CometChatOutgoingCall.
  • Added Arabic translations.
  • Added the useCometChatLayoutDirection hook to read the UI Kit's layout direction in custom views, and exported the CometChatLayoutDirection type.

Enhancements

  • Dates, times and counts now use the UI Kit language's digits and plural forms, including Arabic-Indic digits for Arabic.
  • Messages now read in their own language's direction, with names, mentions, numbers and links kept in order. Code blocks always read left to right.
  • The message composer now follows the language being typed, and an empty composer places the cursor on the side of the keyboard's language. This needs an app rebuild.
  • Group action messages now say "You" for the logged-in user.
  • Translated the remaining built-in text across the UI Kit.

Fixes

  • None