diff options
author | surfdude29 <149612116+surfdude29@users.noreply.github.com> | 2025-04-02 00:01:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-01 16:01:44 -0700 |
commit | 5130f932edc77774a19ba0b2020c87a31f4c0c58 (patch) | |
tree | 17da7ec0eb9e2c07aadd88cac9cecb5bfa10d355 /src/view/screens | |
parent | 8dfdee80bb35fc60ce8b4b78be92bdca3dbb78d0 (diff) | |
download | voidsky-5130f932edc77774a19ba0b2020c87a31f4c0c58.tar.zst |
Make `Posts` and `People` tabs translatable for user lists (#7982)
* mark Posts and People as translatable in lists * tweak labels
Diffstat (limited to 'src/view/screens')
-rw-r--r-- | src/view/screens/ProfileList.tsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index acd603126..966534d97 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -82,8 +82,6 @@ import { import * as Prompt from '#/components/Prompt' import {RichText} from '#/components/RichText' -const SECTION_TITLES_CURATE = ['Posts', 'People'] - interface SectionRef { scrollToTop: () => void } @@ -165,6 +163,7 @@ function ProfileListScreenLoaded({ const isHidden = list.labels?.findIndex(l => l.val === '!hide') !== -1 const isOwner = currentAccount?.did === list.creator.did const scrollElRef = useAnimatedRef() + const sectionTitlesCurate = [_(msg`Posts`), _(msg`People`)] const moderation = React.useMemo(() => { return moderateUserList(list, moderationOpts) @@ -214,7 +213,7 @@ function ProfileListScreenLoaded({ <Hider.Content> <View style={s.hContentRegion}> <PagerWithHeader - items={SECTION_TITLES_CURATE} + items={sectionTitlesCurate} isHeaderReady={true} renderHeader={renderHeader} onCurrentPageSelected={onCurrentPageSelected}> @@ -546,7 +545,7 @@ function Header({ }) items.push({ testID: 'listHeaderDropdownDeleteBtn', - label: _(msg`Delete List`), + label: _(msg`Delete list`), onPress: deleteListPromptControl.open, icon: { ios: { @@ -560,7 +559,7 @@ function Header({ items.push({label: 'separator'}) items.push({ testID: 'listHeaderDropdownReportBtn', - label: _(msg`Report List`), + label: _(msg`Report list`), onPress: onPressReport, icon: { ios: { @@ -595,7 +594,7 @@ function Header({ if (isMuting) { items.push({ testID: 'listHeaderDropdownMuteBtn', - label: _(msg`Un-mute list`), + label: _(msg`Unmute list`), onPress: onUnsubscribeMute, icon: { ios: { @@ -610,7 +609,7 @@ function Header({ if (isBlocking) { items.push({ testID: 'listHeaderDropdownBlockBtn', - label: _(msg`Un-block list`), + label: _(msg`Unblock list`), onPress: onUnsubscribeBlock, icon: { ios: { |