From 9e342e0e9aab07ef776b7cef090eb50ec68aed40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sat, 21 Feb 2026 15:15:38 +0100 Subject: [PATCH] Nicolium: add live region-specific messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/columns/notifications.tsx | 5 +++++ packages/pl-fe/src/features/ui/components/timeline.tsx | 5 +++++ packages/pl-fe/src/locales/en.json | 2 ++ 3 files changed, 12 insertions(+) diff --git a/packages/pl-fe/src/columns/notifications.tsx b/packages/pl-fe/src/columns/notifications.tsx index dc8426ebf..a515f5b4c 100644 --- a/packages/pl-fe/src/columns/notifications.tsx +++ b/packages/pl-fe/src/columns/notifications.tsx @@ -37,6 +37,10 @@ const messages = defineMessages({ defaultMessage: 'Click to see {count} new {count, plural, one {notification} other {notifications}}', }, + queueLiveRegion: { + id: 'notifications.queue_label.live_region', + defaultMessage: '{count} new {count, plural, one {notification} other {notifications}}.', + }, all: { id: 'notifications.filter.all', defaultMessage: 'All' }, mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, statuses: { @@ -356,6 +360,7 @@ const NotificationsColumn: React.FC = ({ multiColumn }) => onClick={handleDequeueNotifications} count={queuedNotificationCount} message={messages.queue} + liveRegionMessage={messages.queueLiveRegion} /> diff --git a/packages/pl-fe/src/features/ui/components/timeline.tsx b/packages/pl-fe/src/features/ui/components/timeline.tsx index 3730b593c..7562f6eb8 100644 --- a/packages/pl-fe/src/features/ui/components/timeline.tsx +++ b/packages/pl-fe/src/features/ui/components/timeline.tsx @@ -15,6 +15,10 @@ const messages = defineMessages({ id: 'status_list.queue_label', defaultMessage: 'Click to see {count} new {count, plural, one {post} other {posts}}', }, + queueLiveRegion: { + id: 'status_list.queue_label.live_region', + defaultMessage: '{count} new {count, plural, one {post} other {posts}}.', + }, }); interface ITimeline extends Omit { @@ -59,6 +63,7 @@ const Timeline: React.FC = ({ timelineId, onLoadMore, prefix, ...rest onClick={handleDequeueTimeline} count={totalQueuedItemsCount} message={messages.queue} + liveRegionMessage={messages.queueLiveRegion} /> diff --git a/packages/pl-fe/src/locales/en.json b/packages/pl-fe/src/locales/en.json index 2eb067024..1632e05e1 100644 --- a/packages/pl-fe/src/locales/en.json +++ b/packages/pl-fe/src/locales/en.json @@ -1395,6 +1395,7 @@ "notifications.filter.polls": "Poll results", "notifications.filter.statuses": "Updates from people you follow", "notifications.queue_label": "Click to see {count} new {count, plural, one {notification} other {notifications}}", + "notifications.queue_label.live_region": "{count} new {count, plural, one {notification} other {notifications}}.", "oauth_consumer.tooltip": "Sign in with {provider}", "oauth_consumers.title": "Other ways to sign in", "password_reset.confirmation": "Check your email for confirmation.", @@ -1829,6 +1830,7 @@ "status.visibility.subscribers": "The post is only visible to users subscribing the author", "status.wrench": "Wrench reaction", "status_list.queue_label": "Click to see {count} new {count, plural, one {post} other {posts}}", + "status_list.queue_label.live_region": "{count} new {count, plural, one {post} other {posts}}.", "statuses.quote_tombstone": "Post is unavailable.", "statuses.tombstone": "One or more posts are unavailable.", "statuses.tombstone.deleted": "The post is deleted.",