diff --git a/packages/pl-fe/src/features/notifications/components/notification.tsx b/packages/pl-fe/src/features/notifications/components/notification.tsx index d528c123f..89ff38252 100644 --- a/packages/pl-fe/src/features/notifications/components/notification.tsx +++ b/packages/pl-fe/src/features/notifications/components/notification.tsx @@ -94,7 +94,7 @@ const messages: Record = 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 = (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 = ( diff --git a/packages/pl-fe/src/locales/en.json b/packages/pl-fe/src/locales/en.json index a331b2af1..680a26727 100644 --- a/packages/pl-fe/src/locales/en.json +++ b/packages/pl-fe/src/locales/en.json @@ -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",