AI Integration Quick Reference
AI Integration Quick Reference
Core Concepts
CometChatLocalize— utility object inchatuikit-coreto set and read the UI Kit locale. Shared by both Kotlin XML and Jetpack Compose modules.Language— constants for supported language codes (Language.ENGLISH,Language.FRENCH, etc.)strings.xml— Android string resources that control visible text in UI Kit components. Override keys in your app’sstrings.xml.
Supported Languages
Set the UI Kit Locale
CallCometChatLocalize.setLocale() before rendering any UI Kit components.
- Kotlin (XML Views)
- Jetpack Compose
Override UI Kit Labels
Override any UI Kit string by adding the same key to your app’sres/values/strings.xml. No source code changes needed — Android’s resource merging handles it.
res/values/strings.xml

Customize Date & Time Labels
Override how timestamps like “Today”, “Yesterday”, and “X mins ago” are displayed.- Kotlin (XML Views)
- Jetpack Compose
Set a
DateTimeFormatterCallback on individual components: