Fix invalid zero plural category and add plural formatting (#10722)
This commit is contained in:
@@ -411,7 +411,6 @@ function Header({
|
|||||||
count?: number
|
count?: number
|
||||||
hasMoreRequests?: boolean
|
hasMoreRequests?: boolean
|
||||||
}) {
|
}) {
|
||||||
const {t: l} = useLingui()
|
|
||||||
return (
|
return (
|
||||||
<Layout.Header.Outer>
|
<Layout.Header.Outer>
|
||||||
<Layout.Header.BackButton />
|
<Layout.Header.BackButton />
|
||||||
@@ -420,15 +419,15 @@ function Header({
|
|||||||
{count === undefined ? (
|
{count === undefined ? (
|
||||||
<Trans>Requests to join</Trans>
|
<Trans>Requests to join</Trans>
|
||||||
) : hasMoreRequests ? (
|
) : hasMoreRequests ? (
|
||||||
l({
|
<Plural
|
||||||
message: `${count}+ requests to join`,
|
value={count}
|
||||||
comment:
|
other="#+ requests to join"
|
||||||
'Displayed when there are more requests to join a group chat than have been loaded',
|
comment="Displayed when there are more requests to join a group chat than have been loaded"
|
||||||
})
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Plural
|
<Plural
|
||||||
value={count}
|
value={count}
|
||||||
zero="No requests to join"
|
_0="No requests to join"
|
||||||
one="# request to join"
|
one="# request to join"
|
||||||
other="# requests to join"
|
other="# requests to join"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user