A platform for community discussion. Free, open, simple.
UX: consistent chat message date format (#29232)
David Battersby6078fb73ea2e
diff --git a/plugins/chat/assets/javascripts/discourse/helpers/format-chat-date.js b/plugins/chat/assets/javascripts/discourse/helpers/format-chat-date.jsindex d89ae0e5dea..2a743b23ab3 100644--- a/plugins/chat/assets/javascripts/discourse/helpers/format-chat-date.js+++ b/plugins/chat/assets/javascripts/discourse/helpers/format-chat-date.js@@ -12,7 +12,7 @@ export default function formatChatDate(message, options = {}) {const display =options.mode === "tiny"? date.format(I18n.t("chat.dates.time_tiny"))- : date.format(I18n.t("dates.time"));+ : date.format(I18n.t("chat.dates.time"));if (message.staged) {return htmlSafe(diff --git a/plugins/chat/config/locales/client.en.yml b/plugins/chat/config/locales/client.en.ymlindex d5e2d46b88a..d874c49fd4c 100644--- a/plugins/chat/config/locales/client.en.yml+++ b/plugins/chat/config/locales/client.en.yml@@ -45,6 +45,7 @@ en:deleted_chat_username: deleteddates:yesterday: "Yesterday"+ time: "h:mm a"time_tiny: "h:mm"all_loaded: "Showing all messages"already_enabled: "Chat is already enabled on this topic. Please refresh."