-
public final class MessageTranslatedLabelKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMessageTranslatedLabel(MessageItemState messageItem, Function0<Unit> onToggleOriginalText)A composable function that displays a label indicating that a message has been translated. -
-
Method Detail
-
MessageTranslatedLabel
@Composable() final static Unit MessageTranslatedLabel(MessageItemState messageItem, Function0<Unit> onToggleOriginalText)
A composable function that displays a label indicating that a message has been translated.
This label is primarily shown next to messages in channels when the message's original language is different from the current user's selected language, and the auto-translation feature is enabled.
- Parameters:
messageItem- The state of the message item which contains details about the message, the original language, and the user's current language.onToggleOriginalText- Called when the user taps on the "Show Original" or "Show Translation" label.
-
-
-
-