Skip to content

v6.0.0

Latest
Compare
Choose a tag to compare
@raj-dubey1 raj-dubey1 released this 14 Feb 15:19
3355e4d

New

  • Added support for new languages: Italian, Japanese, Korean, Turkish, and Dutch.
  • Implemented global date localization support in the CometChatLocalize class.
  • Added lastMessageDateTimeFormat in Conversations component to provide consistent datetime formatting.
  • Added lastActiveAtDateTimeFormat in Message Header component to provide consistent datetime formatting.
  • Added the below props in the Message List component to provide consistent datetime formatting,
    • separatorDateTimeFormat,
    • stickyDateTimeFormat,
    • messageSentAtDateTimeFormat,
    • messageInfoDateTimeFormat
  • Added separatorDateTimeFormat and messageSentAtDateTimeFormat in Thread Header component to provide consistent datetime formatting.
  • Added callInitiatedDateTimeFormat in Call Logs to provide consistent datetime formatting.
  • Added the below methods in the CometChatLocalize class,
    • addTranslation for custom translations.
    • getDefaultLanguage to retrieve the default language.
    • getDateLocaleLanguage for date localization.
    • formatDate to format dates consistently across the application.
    • getCurrentLanguage to retrieve the current language.
    • setCurrentLanguage to set the current language.
    • getLocalizedString to retrieve the localized text based on the current language.

Enhancements

  • Updated the CometChatLocalization class with new initialization methods.
  • Improved localization handling by changing localization keys for better consistency.

Fixes

  • None

Removals

  • Removed datePattern prop from Conversations for streamlined datetime formatting.
  • Removed datePattern prop from Call Logs for streamlined datetime formatting.
  • Removed the following prop from Message List component streamlined datetime formatting,
    • datePattern
    • timePattern
  • Removed the following methods from CometChatLocalize class,
    • getLanguageCode
    • setDefaultLanguage
    • isRTL
    • getDir
    • getLocale
    • setLocale
    • localize

Deprecations

  • None