Make Posts and People tabs translatable for user lists (#7982)

* mark Posts and People as translatable in lists

* tweak labels
This commit is contained in:
surfdude29
2025-04-02 00:01:44 +01:00
committed by GitHub
parent 8dfdee80bb
commit 5130f932ed
+6 -7
View File
@@ -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: {