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

View File

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

View File

@ -283,7 +283,11 @@ function Header({rkey, list}: {rkey: string; list: AppBskyGraphDefs.ListView}) {
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 {
await addSavedFeeds([
{