Skip to content

Commit

Permalink
Make more localizable (bluesky-social#3962)
Browse files Browse the repository at this point in the history
* 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 db128eb.
  • Loading branch information
quiple authored May 15, 2024
1 parent a90cc1c commit 2121b5f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/components/moderation/LabelsOnMeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''},
Expand All @@ -175,7 +175,7 @@ function Label({
? sanitizeHandle(labeler.creator.handle, '@')
: label.src}
</InlineLinkText>
</>
</Trans>
)}
</Text>
</View>
Expand Down
22 changes: 11 additions & 11 deletions src/screens/Feeds/NoFollowingFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
}
6 changes: 5 additions & 1 deletion src/view/screens/ProfileList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([
{
Expand Down

0 comments on commit 2121b5f

Please sign in to comment.