Tweak strings and context (#10928)

This commit is contained in:
surfdude29
2026-06-24 17:39:12 +01:00
committed by GitHub
parent f3978d1a1f
commit 90c010e98a
5 changed files with 8 additions and 8 deletions
@@ -399,7 +399,7 @@ function AccessSection() {
locationControl.open() locationControl.open()
})}> })}>
Tap here to update your location with GPS. Tap here to update your location with GPS.
</SimpleInlineLinkText>{' '} </SimpleInlineLinkText>
</Trans> </Trans>
</Admonition> </Admonition>
@@ -168,7 +168,7 @@ export function GroupChatsAnnouncement() {
a.font_medium, a.font_medium,
{color: t.palette.primary_500}, {color: t.palette.primary_500},
]}> ]}>
<Trans>New</Trans> <Trans context="nux-description">New</Trans>
</Text> </Text>
</View> </View>
<Text <Text
+2 -2
View File
@@ -362,14 +362,14 @@ function MutualGroupChat({
<Button <Button
color="negative_subtle" color="negative_subtle"
disabled={isRemovePending} disabled={isRemovePending}
label={l`Kick member`} label={l`Remove member`}
size="small" size="small"
onPress={() => { onPress={() => {
onOptimisticallyRemoveConvo(view.id) onOptimisticallyRemoveConvo(view.id)
removeMembers({members: [profileDid]}) removeMembers({members: [profileDid]})
}}> }}>
<ButtonText> <ButtonText>
<Trans>Kick member</Trans> <Trans>Remove member</Trans>
</ButtonText> </ButtonText>
{isRemovePending ? <ButtonIcon icon={Loader} /> : null} {isRemovePending ? <ButtonIcon icon={Loader} /> : null}
</Button> </Button>
+3 -3
View File
@@ -212,7 +212,7 @@ function JoinRequestsList({
useJoinRequestMutation('reject', convoId, { useJoinRequestMutation('reject', convoId, {
onSuccess: () => { onSuccess: () => {
ax.metric('groupchat:owner:joinRequest:reject', {convoId}) ax.metric('groupchat:owner:joinRequest:reject', {convoId})
Toast.show(l`Request ignored.`) Toast.show(l`Request rejected.`)
if (getRemainingRequestCount() < 1) { if (getRemainingRequestCount() < 1) {
navigation.replace('MessagesConversationSettings', { navigation.replace('MessagesConversationSettings', {
conversation: convoId, conversation: convoId,
@@ -220,7 +220,7 @@ function JoinRequestsList({
} }
}, },
onError: error => { onError: error => {
let errorMessage = l`Failed to ignore join request` let errorMessage = l`Failed to reject join request`
if (isNetworkError(error)) { if (isNetworkError(error)) {
errorMessage = l`A network error occurred. Please check your internet connection.` errorMessage = l`A network error occurred. Please check your internet connection.`
} else if ( } else if (
@@ -230,7 +230,7 @@ function JoinRequestsList({
} else if ( } else if (
error instanceof ChatBskyGroupRejectJoinRequest.InsufficientRoleError error instanceof ChatBskyGroupRejectJoinRequest.InsufficientRoleError
) { ) {
errorMessage = l`Only admins can ignore join requests.` errorMessage = l`Only admins can reject join requests.`
} }
Toast.show(errorMessage, {type: 'error'}) Toast.show(errorMessage, {type: 'error'})
}, },
@@ -243,7 +243,7 @@ export function MessageComposer({
placeholder={ placeholder={
loading loading
? l({message: 'Loading chat…', context: 'placeholder'}) ? l({message: 'Loading chat…', context: 'placeholder'})
: l({message: 'Message', context: 'action'}) : l({message: 'Message', context: 'description'})
} }
autocompletePlacement="top-start" autocompletePlacement="top-start"
internalApiRef={composerInternalApiRef} internalApiRef={composerInternalApiRef}