Nicolium: add live region-specific messages

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-21 15:15:38 +01:00
parent a2ee7fbc37
commit 9e342e0e9a
3 changed files with 12 additions and 0 deletions

View File

@ -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<INotificationsColumn> = ({ multiColumn }) =>
onClick={handleDequeueNotifications}
count={queuedNotificationCount}
message={messages.queue}
liveRegionMessage={messages.queueLiveRegion}
/>
</Portal>

View File

@ -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<IStatusList, 'statusIds' | 'isLoading' | 'hasMore'> {
@ -59,6 +63,7 @@ const Timeline: React.FC<ITimeline> = ({ timelineId, onLoadMore, prefix, ...rest
onClick={handleDequeueTimeline}
count={totalQueuedItemsCount}
message={messages.queue}
liveRegionMessage={messages.queueLiveRegion}
/>
</Portal>

View File

@ -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.",