Skip to content

Commit 1294e3d

Browse files
committed
PR suggestion about bot chat bubble
1 parent f97d4e8 commit 1294e3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

WordPress/src/main/java/org/wordpress/android/support/aibot/ui/AIBotConversationDetailScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private fun ChatInputBar(
293293
@Composable
294294
private fun MessageBubble(message: BotMessage, resources: android.content.res.Resources) {
295295
val timestamp = formatRelativeTime(message.date, resources)
296-
val author = if (message.isWrittenByUser) "You" else "AI Bot"
296+
val author = stringResource(if (message.isWrittenByUser) R.string.ai_bot_you else R.string.ai_bot_odie)
297297
val messageDescription = "$author, $timestamp. ${message.formattedText}"
298298

299299
Row(

WordPress/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5130,6 +5130,8 @@ translators: %s: Select control option value e.g: "Auto, 25%". -->
51305130
<string name="ai_bot_empty_conversations_title">No conversations yet</string>
51315131
<string name="ai_bot_empty_conversations_message">Start a new conversation to get help with your WordPress site or account.</string>
51325132
<string name="ai_bot_empty_conversations_button">Start conversation</string>
5133+
<string name="ai_bot_you">You</string>
5134+
<string name="ai_bot_odie" translatable="false">Odie</string>
51335135

51345136
<!-- AI Bot Support - Conversation Detail Screen -->
51355137
<string name="ai_bot_send_button_content_description">Send</string>

0 commit comments

Comments
 (0)