From 0b002ef82478805afa127b41abde78dfb1ee086a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 24 Nov 2025 22:35:49 +0100 Subject: [PATCH] pl-fe: label for subscribed repost notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../src/features/notifications/components/notification.tsx | 6 ++++-- packages/pl-fe/src/locales/en.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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",