Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

surfdude29 and committed by
GitHub
df9909ba 7a041da3

+11 -6
+4 -2
src/components/StarterPack/StarterPackCard.tsx
··· 2 2 import {View} from 'react-native' 3 3 import {Image} from 'expo-image' 4 4 import {AppBskyGraphStarterpack, AtUri} from '@atproto/api' 5 - import {msg} from '@lingui/macro' 5 + import {msg, Plural, Trans} from '@lingui/macro' 6 6 import {useLingui} from '@lingui/react' 7 7 import {useQueryClient} from '@tanstack/react-query' 8 8 ··· 95 95 ) : null} 96 96 {!!joinedAllTimeCount && joinedAllTimeCount >= 50 && ( 97 97 <Text style={[a.font_bold, t.atoms.text_contrast_medium]}> 98 - {joinedAllTimeCount} users have joined! 98 + <Trans comment="Number of users (always at least 50) who have joined Bluesky using a specific starter pack"> 99 + <Plural value={joinedAllTimeCount} other="# users have" /> joined! 100 + </Trans> 99 101 </Text> 100 102 )} 101 103 </View>
+7 -4
src/screens/StarterPack/StarterPackScreen.tsx
··· 9 9 RichText as RichTextAPI, 10 10 } from '@atproto/api' 11 11 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' 12 - import {msg, Trans} from '@lingui/macro' 12 + import {msg, Plural, Trans} from '@lingui/macro' 13 13 import {useLingui} from '@lingui/react' 14 14 import {useNavigation} from '@react-navigation/native' 15 15 import {NativeStackScreenProps} from '@react-navigation/native-stack' ··· 482 482 /> 483 483 <Text 484 484 style={[a.font_bold, a.text_sm, t.atoms.text_contrast_medium]}> 485 - <Trans> 486 - {starterPack.joinedAllTimeCount || 0} people have used this 487 - starter pack! 485 + <Trans comment="Number of users (always at least 25) who have joined Bluesky using a specific starter pack"> 486 + <Plural 487 + value={starterPack.joinedAllTimeCount || 0} 488 + other="# people have" 489 + />{' '} 490 + used this starter pack! 488 491 </Trans> 489 492 </Text> 490 493 </View>