Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

KnownFollowers localization (#4494)

* Update KnownFollowers.tsx

* Update KnownFollowers.tsx

* Update KnownFollowers.tsx

authored by

Minseo Lee and committed by
GitHub
7faa1d91 28ba9991

+28 -22
+28 -22
src/components/KnownFollowers.tsx
··· 1 1 import React from 'react' 2 2 import {View} from 'react-native' 3 3 import {AppBskyActorDefs, moderateProfile, ModerationOpts} from '@atproto/api' 4 - import {msg, plural, Trans} from '@lingui/macro' 4 + import {msg, Plural, Trans} from '@lingui/macro' 5 5 import {useLingui} from '@lingui/react' 6 6 7 7 import {makeProfileLink} from '#/lib/routes/links' ··· 164 164 }, 165 165 ]} 166 166 numberOfLines={2}> 167 - <Trans>Followed by</Trans>{' '} 168 167 {count > 2 ? ( 169 - <> 170 - {slice.slice(0, 2).map(({profile: prof}, i) => ( 171 - <Text key={prof.did} style={textStyle}> 172 - {prof.displayName} 173 - {i === 0 && ', '} 174 - </Text> 175 - ))} 176 - {', '} 177 - {plural(count - 2, { 178 - one: 'and # other', 179 - other: 'and # others', 180 - })} 181 - </> 168 + <Trans> 169 + Followed by{' '} 170 + <Text key={slice[0].profile.did} style={textStyle}> 171 + {slice[0].profile.displayName} 172 + </Text> 173 + ,{' '} 174 + <Text key={slice[1].profile.did} style={textStyle}> 175 + {slice[1].profile.displayName} 176 + </Text> 177 + , and{' '} 178 + <Plural value={count - 2} one="# other" other="# others" /> 179 + </Trans> 182 180 ) : count === 2 ? ( 183 - slice.map(({profile: prof}, i) => ( 184 - <Text key={prof.did} style={textStyle}> 185 - {prof.displayName} {i === 0 ? _(msg`and`) + ' ' : ''} 181 + <Trans> 182 + Followed by{' '} 183 + <Text key={slice[0].profile.did} style={textStyle}> 184 + {slice[0].profile.displayName} 185 + </Text>{' '} 186 + and{' '} 187 + <Text key={slice[1].profile.did} style={textStyle}> 188 + {slice[1].profile.displayName} 186 189 </Text> 187 - )) 190 + </Trans> 188 191 ) : ( 189 - <Text key={slice[0].profile.did} style={textStyle}> 190 - {slice[0].profile.displayName} 191 - </Text> 192 + <Trans> 193 + Followed by{' '} 194 + <Text key={slice[0].profile.did} style={textStyle}> 195 + {slice[0].profile.displayName} 196 + </Text> 197 + </Trans> 192 198 )} 193 199 </Text> 194 200 </>