Skip to content

Commit 27a652e

Browse files
authored
Merge pull request #266 from GetStream/translation-fix
fix: Empty channel preview text can't be translated #265
2 parents 56830cb + 279a037 commit 27a652e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/stream-chat-angular/src/lib/channel-preview/channel-preview.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ChannelPreviewComponent implements OnInit, OnDestroy {
2626
@Input() channel: Channel<DefaultStreamChatGenerics> | undefined;
2727
isActive = false;
2828
isUnread = false;
29-
latestMessage: string = 'Nothing yet...';
29+
latestMessage: string = 'streamChat.Nothing yet...';
3030
private subscriptions: (Subscription | { unsubscribe: () => void })[] = [];
3131
private canSendReadEvents = true;
3232

@@ -111,7 +111,7 @@ export class ChannelPreviewComponent implements OnInit, OnDestroy {
111111
private handleMessageEvent(event: Event) {
112112
this.ngZone.run(() => {
113113
if (this.channel?.state.messages.length === 0) {
114-
this.latestMessage = 'Nothing yet...';
114+
this.latestMessage = 'streamChat.Nothing yet...';
115115
return;
116116
}
117117
if (

0 commit comments

Comments
 (0)