diff --git a/apps/web/src/components/Composer/Actions/PollSettings/PollEditor.tsx b/apps/web/src/components/Composer/Actions/PollSettings/PollEditor.tsx index adfd686c539d..9507fa781ad1 100644 --- a/apps/web/src/components/Composer/Actions/PollSettings/PollEditor.tsx +++ b/apps/web/src/components/Composer/Actions/PollSettings/PollEditor.tsx @@ -1,6 +1,6 @@ import { ClockIcon, PlusIcon, XIcon } from '@heroicons/react/outline'; import { MenuAlt2Icon, XCircleIcon } from '@heroicons/react/solid'; -import { plural, t, Trans } from '@lingui/macro'; +import { Plural, t, Trans } from '@lingui/macro'; import type { FC } from 'react'; import { useState } from 'react'; import { usePublicationStore } from 'src/store/publication'; @@ -31,11 +31,12 @@ const PollEditor: FC = () => { outline > {pollConfig.length}{' '} - {plural(pollConfig.length, { - zero: 'day', - one: 'day', - other: 'days' - })} + {
{tag?.tag}
{nFormatter(tag?.total)}{' '} - {plural(tag?.total, { - zero: 'Publication', - one: 'Publication', - other: 'Publications' - })} +
diff --git a/apps/web/src/components/Profile/Followerings.tsx b/apps/web/src/components/Profile/Followerings.tsx index a27988518d2e..054305b2022d 100644 --- a/apps/web/src/components/Profile/Followerings.tsx +++ b/apps/web/src/components/Profile/Followerings.tsx @@ -1,5 +1,5 @@ import { UsersIcon } from '@heroicons/react/outline'; -import { plural, t } from '@lingui/macro'; +import { Plural, t } from '@lingui/macro'; import type { Profile } from 'lens'; import humanize from 'lib/humanize'; import type { FC } from 'react'; @@ -29,11 +29,12 @@ const Followerings: FC = ({ profile }) => { {humanize(profile?.stats?.totalFollowing)}
- {plural(profile?.stats?.totalFollowers, { - zero: 'Following', - one: 'Following', - other: 'Following' - })} +
= ({ onClick={() => setShowCollectorsModal(!showCollectorsModal)} > {humanize(count)}{' '} - {plural(count, { - zero: 'collector', - one: 'collector', - other: 'collectors' - })} + = ({ publication }) => { {nFormatter(commentsCount)} {' '} - {plural(commentsCount, { - zero: 'Comment', - one: 'Comment', - other: 'Comments' - })} + = ({ publication }) => { {nFormatter(reactionCount)} {' '} - {plural(reactionCount, { - zero: 'Like', - one: 'Like', - other: 'Likes' - })} + = ({ publication }) => { {nFormatter(collectCount)} {' '} - {plural(collectCount, { - zero: 'Collect', - one: 'Collect', - other: 'Collects' - })} + = ({ · {humanize(scores_total ?? 0)}{' '} - {plural(scores_total ?? 0, { - zero: 'Vote', - one: 'Vote', - other: 'Votes' - })} + {state === 'active' && ( <> diff --git a/apps/web/src/components/Shared/UserPreview.tsx b/apps/web/src/components/Shared/UserPreview.tsx index 549fae735f03..2ce05130afb2 100644 --- a/apps/web/src/components/Shared/UserPreview.tsx +++ b/apps/web/src/components/Shared/UserPreview.tsx @@ -1,5 +1,5 @@ import { BadgeCheckIcon } from '@heroicons/react/solid'; -import { plural } from '@lingui/macro'; +import { Plural } from '@lingui/macro'; import Tippy from '@tippyjs/react'; import clsx from 'clsx'; import type { Profile } from 'lens'; @@ -123,11 +123,12 @@ const UserPreview: FC = ({ {nFormatter(lazyProfile?.stats?.totalFollowing)}
- {plural(lazyProfile?.stats?.totalFollowers, { - zero: 'Following', - one: 'Following', - other: 'Following' - })} +
@@ -135,11 +136,12 @@ const UserPreview: FC = ({ {nFormatter(lazyProfile?.stats?.totalFollowers)}
- {plural(lazyProfile?.stats?.totalFollowers, { - zero: 'Follower', - one: 'Follower', - other: 'Followers' - })} +
diff --git a/apps/web/src/locales/fr/messages.po b/apps/web/src/locales/fr/messages.po index 526ce56eeb2b..32aae9e0b5bd 100644 --- a/apps/web/src/locales/fr/messages.po +++ b/apps/web/src/locales/fr/messages.po @@ -2879,4 +2879,3 @@ msgstr "" #: src/pages/500.tsx msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing." msgstr "" - diff --git a/apps/web/src/locales/ru/messages.po b/apps/web/src/locales/ru/messages.po index 67d89d0634cc..f399fe16b80f 100644 --- a/apps/web/src/locales/ru/messages.po +++ b/apps/web/src/locales/ru/messages.po @@ -2879,4 +2879,3 @@ msgstr "Похоже, что-то пошло не так!" #: src/pages/500.tsx msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing." msgstr "Мы автоматически отслеживаем эти ошибки, но если проблема не устранена, не стесняйтесь обращаться к нам. А пока попробуйте обновить страницу." - diff --git a/apps/web/src/locales/ta/messages.po b/apps/web/src/locales/ta/messages.po index ed3af84ae8b4..16d7d374c66a 100644 --- a/apps/web/src/locales/ta/messages.po +++ b/apps/web/src/locales/ta/messages.po @@ -2879,4 +2879,3 @@ msgstr "ஏதோ தவறாகிவிட்டது போல் தெர #: src/pages/500.tsx msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing." msgstr "இந்தப் பிழைகளைத் தானாகக் கண்காணிக்கிறோம், ஆனால் சிக்கல் தொடர்ந்தால், எங்களைத் தொடர்பு கொள்ளலாம். இதற்கிடையில், புதுப்பித்து முயற்சிக்கவும்." - diff --git a/apps/web/src/locales/zh/messages.po b/apps/web/src/locales/zh/messages.po index c61402f0be92..5fcb6037a1d3 100644 --- a/apps/web/src/locales/zh/messages.po +++ b/apps/web/src/locales/zh/messages.po @@ -2879,4 +2879,3 @@ msgstr "系统似乎出现了故障!" #: src/pages/500.tsx msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing." msgstr "我们会自动追踪这些错误,但如果问题仍然存在,请随时与我们联系。 与此同时,您可以尝试刷新页面。" -