plural
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api'
|
import {AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Plural, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {NativeStackScreenProps} from '@react-navigation/native-stack'
|
import {NativeStackScreenProps} from '@react-navigation/native-stack'
|
||||||
|
|
||||||
@@ -183,8 +183,13 @@ function Header({
|
|||||||
<Text style={[a.text_md]}>{record.description}</Text>
|
<Text style={[a.text_md]}>{record.description}</Text>
|
||||||
<Text style={[a.font_bold, a.text_md, t.atoms.text_contrast_medium]}>
|
<Text style={[a.font_bold, a.text_md, t.atoms.text_contrast_medium]}>
|
||||||
<Trans>
|
<Trans>
|
||||||
{starterPack.joinedAllTimeCount} people have joined this starter
|
{starterPack.joinedAllTimeCount || 0}{' '}
|
||||||
pack!
|
<Plural
|
||||||
|
value={starterPack.joinedAllTimeCount || 0}
|
||||||
|
one="person has"
|
||||||
|
other="people have"
|
||||||
|
/>{' '}
|
||||||
|
joined this starter pack!
|
||||||
</Trans>
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user