Skip to content

Commit f463551

Browse files
notif [nfc]: Use localization for self user display name
1 parent f6db5c0 commit f463551

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,5 +479,9 @@
479479
"senderFullName": {"type": "String", "example": "Alice"},
480480
"numOthers": {"type": "int", "example": "4"}
481481
}
482+
},
483+
"notifSelfUser": "You",
484+
"@notifSelfUser": {
485+
"description": "Display name for the user themself, to show after replying in an Android notification"
482486
}
483487
}

lib/notifications/display.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class NotificationDisplayManager {
108108
messagingStyle = MessagingStyle(
109109
user: Person(
110110
key: _personKey(data.realmUri, data.userId),
111-
name: 'You'), // TODO(i18n)
111+
name: zulipLocalizations.notifSelfUser),
112112
messages: [],
113113
isGroupConversation: switch (data.recipient) {
114114
FcmMessageStreamRecipient() => true,

0 commit comments

Comments
 (0)