setLocale(Activity activity, @Language.Code String language)
: This method is used to set the language in the UI Kit. It will take the constant value from the Language class and set the value accordingly.
getLocale()
: This method is used to get the current language. By default, it will return the current language from the device/browser.
strings.xml
file. By redefining these keys in your application’s strings.xml, you can change how they appear in the UIKit components.
Example:
CometChatConversations
component to label the chat list. Customizing the String To change this text to “Conversations”, add the following line in your app’s res/values/strings.xml
file: