pl-fe: label for subscribed repost notification

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-11-24 22:35:49 +01:00
parent f0ca9d0014
commit 0b002ef824
2 changed files with 5 additions and 3 deletions

View File

@ -94,7 +94,7 @@ const messages: Record<NotificationType | 'reply', MessageDescriptor> = defineMe
},
status: {
id: 'notification.status',
defaultMessage: '{name} just posted',
defaultMessage: '{name} {isReblog, plural, =0 {just posted} other {just reposted}}',
},
poll: {
id: 'notification.poll',
@ -169,6 +169,7 @@ const buildMessage = (
targetName: string,
instanceTitle: string,
hasStatus: boolean,
isReblog: boolean,
): React.ReactNode => {
const renderedAccounts = accounts.slice(0, 2).map(account => buildLink(account)).filter(Boolean);
@ -189,6 +190,7 @@ const buildMessage = (
instance: instanceTitle,
count: accounts.length,
hasStatus: +hasStatus,
isReblog: type === 'reblog' ? 1 : 0,
});
};
@ -459,7 +461,7 @@ const Notification: React.FC<INotification> = (props) => {
const targetName = notification.type === 'move' ? notification.target.acct : '';
const message: React.ReactNode = accounts.length
? buildMessage(intl, displayedType, accounts, targetName, instance.title, !!status)
? buildMessage(intl, displayedType, accounts, targetName, instance.title, !!status, !!status?.reblog)
: null;
const ariaLabel = (

View File

@ -1332,7 +1332,7 @@
"notification.reblog": "{name} reposted your post",
"notification.reply": "{name} replied to your post",
"notification.severed_relationships": "Lost connections with {name}",
"notification.status": "{name} just posted",
"notification.status": "{name} {isReblog, plural, =0 {just posted} other {just reposted}}",
"notification.update": "{name} edited a post you interacted with",
"notifications.filter.all": "All",
"notifications.filter.boosts": "Reposts",