Translate number joined starter pack string and add plural formatting (#7984)

* translate number joined starter pack string

* also add plural formatting in StarterPackScreen.tsx

* import Plural

* tweak

* tweak
This commit is contained in:
surfdude29
2025-04-01 23:59:53 +01:00
committed by GitHub
parent 7a041da3a8
commit df9909baa3
2 changed files with 11 additions and 6 deletions
@@ -9,7 +9,7 @@ import {
RichText as RichTextAPI,
} from '@atproto/api'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {msg, Trans} from '@lingui/macro'
import {msg, Plural, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useNavigation} from '@react-navigation/native'
import {NativeStackScreenProps} from '@react-navigation/native-stack'
@@ -482,9 +482,12 @@ function Header({
/>
<Text
style={[a.font_bold, a.text_sm, t.atoms.text_contrast_medium]}>
<Trans>
{starterPack.joinedAllTimeCount || 0} people have used this
starter pack!
<Trans comment="Number of users (always at least 25) who have joined Bluesky using a specific starter pack">
<Plural
value={starterPack.joinedAllTimeCount || 0}
other="# people have"
/>{' '}
used this starter pack!
</Trans>
</Text>
</View>