Skip to content

Commit

Permalink
use localized text for day headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedwag committed Oct 9, 2024
1 parent 1fb98d8 commit fadbe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devextreme/js/__internal/ui/chat/messagelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ class MessageList extends Widget<Properties> {
}).replace(/[/-]/g, '.');

if (dateUtils.sameDate(deserializedDate, today)) {
headerDate = `Today ${headerDate}`;
headerDate = `${messageLocalization.format('Today')} ${headerDate}`;
}

if (dateUtils.sameDate(deserializedDate, yesterday)) {
headerDate = `Yesterday ${headerDate}`;
headerDate = `${messageLocalization.format('Yesterday')} ${headerDate}`;
}

$('<div>')
Expand Down

0 comments on commit fadbe47

Please sign in to comment.