Nicolium: add live region-specific messages
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user