Make more localizable (#3962)

* Update ProfileList.tsx

* Update NoFollowingFeed.tsx

* Update LabelsOnMeDialog.tsx

* Update LabelsOnMeDialog.tsx

* Update NoFollowingFeed.tsx

* Update SavedFeeds.tsx

* Revert "Update SavedFeeds.tsx"

This reverts commit db128eb27d76d27dffa87e0e70e34f603da75778.
zio/stable
Minseo Lee 2024-05-15 14:44:59 +09:00 committed by GitHub
parent a90cc1c030
commit 2121b5f86f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 16 deletions

View File

@ -162,10 +162,10 @@ function Label({
<View style={[a.px_md, a.py_sm, t.atoms.bg_contrast_25]}> <View style={[a.px_md, a.py_sm, t.atoms.bg_contrast_25]}>
<Text style={[t.atoms.text_contrast_medium]}> <Text style={[t.atoms.text_contrast_medium]}>
{isSelfLabel ? ( {isSelfLabel ? (
<Trans>This label was applied by you</Trans> <Trans>This label was applied by you.</Trans>
) : ( ) : (
<> <Trans>
<Trans>Source:</Trans>{' '} Source:{' '}
<InlineLinkText <InlineLinkText
to={makeProfileLink( to={makeProfileLink(
labeler ? labeler.creator : {did: label.src, handle: ''}, labeler ? labeler.creator : {did: label.src, handle: ''},
@ -175,7 +175,7 @@ function Label({
? sanitizeHandle(labeler.creator.handle, '@') ? sanitizeHandle(labeler.creator.handle, '@')
: label.src} : label.src}
</InlineLinkText> </InlineLinkText>
</> </Trans>
)} )}
</Text> </Text>
</View> </View>

View File

@ -33,18 +33,18 @@ export function NoFollowingFeed() {
return ( return (
<View style={[a.flex_row, a.flex_wrap, a.align_center, a.py_md, a.px_lg]}> <View style={[a.flex_row, a.flex_wrap, a.align_center, a.py_md, a.px_lg]}>
<Text <Text style={[a.leading_snug, t.atoms.text_contrast_medium]}>
style={[a.leading_snug, t.atoms.text_contrast_medium, {maxWidth: 310}]}> <Trans>
<Trans>Looks like you're missing a following feed.</Trans>{' '} Looks like you're missing a following feed.{' '}
</Text>
<InlineLinkText <InlineLinkText
to="/" to="/"
label={_(msg`Add the default feed of only people you follow`)} label={_(msg`Add the default feed of only people you follow`)}
onPress={addRecommendedFeeds} onPress={addRecommendedFeeds}
style={[a.leading_snug]}> style={[a.leading_snug]}>
<Trans>Click here to add one.</Trans> Click here to add one.
</InlineLinkText> </InlineLinkText>
</Trans>
</Text>
</View> </View>
) )
} }

View File

@ -283,7 +283,11 @@ function Header({rkey, list}: {rkey: string; list: AppBskyGraphDefs.ListView}) {
pinned, pinned,
}, },
]) ])
Toast.show(_(msg`${pinned ? 'Pinned to' : 'Unpinned from'} your feeds`)) Toast.show(
pinned
? _(msg`Pinned to your feeds`)
: _(msg`Unpinned from your feeds`),
)
} else { } else {
await addSavedFeeds([ await addSavedFeeds([
{ {