diff --git a/src/components/notification.jsx b/src/components/notification.jsx index b7fbf8d3..e2b0996e 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -82,10 +82,10 @@ const contentText = { }) => ( <Plural value={count} - one={ + _1={ <Plural value={postsCount} - one={ + _1={ <Select value={postType} _reply={<Trans>{account} boosted your reply.</Trans>} @@ -125,7 +125,7 @@ const contentText = { follow: ({ account, count, components: { Subject } }) => ( <Plural value={count} - one={<Trans>{account} followed you.</Trans>} + _1={<Trans>{account} followed you.</Trans>} other={ <Trans> <Subject clickable={count > 1}> @@ -148,10 +148,10 @@ const contentText = { }) => ( <Plural value={count} - one={ + _1={ <Plural value={postsCount} - one={ + _1={ <Select value={postType} _reply={<Trans>{account} liked your reply.</Trans>} @@ -201,10 +201,10 @@ const contentText = { }) => ( <Plural value={count} - one={ + _1={ <Plural value={postsCount} - one={ + _1={ <Select value={postType} _reply={<Trans>{account} boosted & liked your reply.</Trans>} @@ -402,7 +402,13 @@ function Notification({ text = text({ emoji: notification.emoji, emojiURL }); } else { text = text({ - account: account && <NameText account={account} showAvatar />, + account: account ? ( + <NameText account={account} showAvatar /> + ) : ( + sampleAccounts?.[0] && ( + <NameText account={sampleAccounts[0]} showAvatar /> + ) + ), count, postsCount, postType: isReplyToOthers ? 'reply' : 'post', diff --git a/src/locales/en.po b/src/locales/en.po index 5629e13d..661bfe3c 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -1343,11 +1343,11 @@ msgid "{account} published a post." msgstr "" #: src/components/notification.jsx:83 -msgid "{count, plural, one {{postsCount, plural, one {{postType, select, reply {{account} boosted your reply.} other {{account} boosted your post.}}} other {{account} boosted {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted your reply.} other {<2><3>{1}</3> people</2> boosted your post.}}}}" +msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} boosted your reply.} other {{account} boosted your post.}}} other {{account} boosted {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted your reply.} other {<2><3>{1}</3> people</2> boosted your post.}}}}" msgstr "" #: src/components/notification.jsx:126 -msgid "{count, plural, one {{account} followed you.} other {<0><1>{0}</1> people</0> followed you.}}" +msgid "{count, plural, =1 {{account} followed you.} other {<0><1>{0}</1> people</0> followed you.}}" msgstr "" #: src/components/notification.jsx:140 @@ -1355,7 +1355,7 @@ msgid "{account} requested to follow you." msgstr "" #: src/components/notification.jsx:149 -msgid "{count, plural, one {{postsCount, plural, one {{postType, select, reply {{account} liked your reply.} other {{account} liked your post.}}} other {{account} liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> liked your reply.} other {<2><3>{1}</3> people</2> liked your post.}}}}" +msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} liked your reply.} other {{account} liked your post.}}} other {{account} liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> liked your reply.} other {<2><3>{1}</3> people</2> liked your post.}}}}" msgstr "" #: src/components/notification.jsx:191 @@ -1375,7 +1375,7 @@ msgid "A post you interacted with has been edited." msgstr "" #: src/components/notification.jsx:202 -msgid "{count, plural, one {{postsCount, plural, one {{postType, select, reply {{account} boosted & liked your reply.} other {{account} boosted & liked your post.}}} other {{account} boosted & liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted & liked your reply.} other {<2><3>{1}</3> people</2> boosted & liked your post.}}}}" +msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} boosted & liked your reply.} other {{account} boosted & liked your post.}}} other {{account} boosted & liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted & liked your reply.} other {<2><3>{1}</3> people</2> boosted & liked your post.}}}}" msgstr "" #: src/components/notification.jsx:244 diff --git a/src/locales/pseudo-LOCALE.po b/src/locales/pseudo-LOCALE.po index b523b91f..d0e2b816 100644 --- a/src/locales/pseudo-LOCALE.po +++ b/src/locales/pseudo-LOCALE.po @@ -1343,11 +1343,11 @@ msgid "{account} published a post." msgstr "" #: src/components/notification.jsx:83 -msgid "{count, plural, one {{postsCount, plural, one {{postType, select, reply {{account} boosted your reply.} other {{account} boosted your post.}}} other {{account} boosted {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted your reply.} other {<2><3>{1}</3> people</2> boosted your post.}}}}" +msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} boosted your reply.} other {{account} boosted your post.}}} other {{account} boosted {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted your reply.} other {<2><3>{1}</3> people</2> boosted your post.}}}}" msgstr "" #: src/components/notification.jsx:126 -msgid "{count, plural, one {{account} followed you.} other {<0><1>{0}</1> people</0> followed you.}}" +msgid "{count, plural, =1 {{account} followed you.} other {<0><1>{0}</1> people</0> followed you.}}" msgstr "" #: src/components/notification.jsx:140 @@ -1355,7 +1355,7 @@ msgid "{account} requested to follow you." msgstr "" #: src/components/notification.jsx:149 -msgid "{count, plural, one {{postsCount, plural, one {{postType, select, reply {{account} liked your reply.} other {{account} liked your post.}}} other {{account} liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> liked your reply.} other {<2><3>{1}</3> people</2> liked your post.}}}}" +msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} liked your reply.} other {{account} liked your post.}}} other {{account} liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> liked your reply.} other {<2><3>{1}</3> people</2> liked your post.}}}}" msgstr "" #: src/components/notification.jsx:191 @@ -1375,7 +1375,7 @@ msgid "A post you interacted with has been edited." msgstr "" #: src/components/notification.jsx:202 -msgid "{count, plural, one {{postsCount, plural, one {{postType, select, reply {{account} boosted & liked your reply.} other {{account} boosted & liked your post.}}} other {{account} boosted & liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted & liked your reply.} other {<2><3>{1}</3> people</2> boosted & liked your post.}}}}" +msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} boosted & liked your reply.} other {{account} boosted & liked your post.}}} other {{account} boosted & liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0}</1> people</0> boosted & liked your reply.} other {<2><3>{1}</3> people</2> boosted & liked your post.}}}}" msgstr "" #: src/components/notification.jsx:244