Skip to content

Commit 01c2095

Browse files
authored
Add english-only-resource context and tweak labels (#8805)
* add context in VerificationsDialog.tsx * add context in VerifierDialog.tsx * add context in VerificationSettings.tsx * add context in EditProfileDialog.tsx * add context and tweak label in ChangeHandleDialog.tsx * tweak label in ContentHider.tsx
1 parent 9972243 commit 01c2095

File tree

6 files changed

+41
-11
lines changed

6 files changed

+41
-11
lines changed

src/components/moderation/ContentHider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function ContentHiderActive({
215215
control.open()
216216
}}
217217
label={_(
218-
msg`Learn more about the moderation applied to this content.`,
218+
msg`Learn more about the moderation applied to this content`,
219219
)}
220220
style={[a.pt_sm]}>
221221
{state => (

src/components/verification/VerificationsDialog.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ function Inner({
147147
<Link
148148
overridePresentation
149149
to={urls.website.blog.initialVerificationAnnouncement}
150-
label={_(msg`Learn more about verification on Bluesky`)}
150+
label={_(
151+
msg({
152+
message: `Learn more about verification on Bluesky`,
153+
context: `english-only-resource`,
154+
}),
155+
)}
151156
size="small"
152157
variant="solid"
153158
color="secondary"
@@ -162,7 +167,7 @@ function Inner({
162167
)
163168
}}>
164169
<ButtonText>
165-
<Trans>Learn more</Trans>
170+
<Trans context="english-only-resource">Learn more</Trans>
166171
</ButtonText>
167172
</Link>
168173
</View>

src/components/verification/VerifierDialog.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ function Inner({
114114
<Link
115115
overridePresentation
116116
to={urls.website.blog.initialVerificationAnnouncement}
117-
label={_(msg`Learn more about verification on Bluesky`)}
117+
label={_(
118+
msg({
119+
message: `Learn more about verification on Bluesky`,
120+
context: `english-only-resource`,
121+
}),
122+
)}
118123
size="small"
119124
variant="solid"
120125
color="primary"
@@ -129,7 +134,7 @@ function Inner({
129134
)
130135
}}>
131136
<ButtonText>
132-
<Trans>Learn more</Trans>
137+
<Trans context="english-only-resource">Learn more</Trans>
133138
</ButtonText>
134139
</Link>
135140
<Button

src/screens/Moderation/VerificationSettings.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export function Screen() {
4444
<InlineLinkText
4545
overridePresentation
4646
to={urls.website.blog.initialVerificationAnnouncement}
47-
label={_(msg`Learn more`)}
47+
label={_(
48+
msg({
49+
message: `Learn more`,
50+
context: `english-only-resource`,
51+
}),
52+
)}
4853
onPress={() => {
4954
logger.metric(
5055
'verification:learn-more',

src/screens/Profile/Header/EditProfileDialog.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,14 @@ function DialogInner({
347347
You are verified. You will lose your verification status if you
348348
change your display name.{' '}
349349
<InlineLinkText
350-
label={_(msg`Learn more`)}
350+
label={_(
351+
msg({
352+
message: `Learn more`,
353+
context: `english-only-resource`,
354+
}),
355+
)}
351356
to={urls.website.blog.initialVerificationAnnouncement}>
352-
<Trans>Learn more.</Trans>
357+
<Trans context="english-only-resource">Learn more.</Trans>
353358
</InlineLinkText>
354359
</Trans>
355360
</Admonition>

src/screens/Settings/components/ChangeHandleDialog.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,14 @@ function ProvidedHandlePage({
209209
You are verified. You will lose your verification status if you
210210
change your handle.{' '}
211211
<InlineLinkText
212-
label={_(msg`Learn more`)}
212+
label={_(
213+
msg({
214+
message: `Learn more`,
215+
context: `english-only-resource`,
216+
}),
217+
)}
213218
to={urls.website.blog.initialVerificationAnnouncement}>
214-
<Trans>Learn more.</Trans>
219+
<Trans context="english-only-resource">Learn more.</Trans>
215220
</InlineLinkText>
216221
</Trans>
217222
</Admonition>
@@ -268,7 +273,12 @@ function ProvidedHandlePage({
268273
If you have your own domain, you can use that as your handle. This
269274
lets you self-verify your identity.{' '}
270275
<InlineLinkText
271-
label={_(msg`learn more`)}
276+
label={_(
277+
msg({
278+
message: `Learn more`,
279+
context: `english-only-resource`,
280+
}),
281+
)}
272282
to="https://bsky.social/about/blog/4-28-2023-domain-handle-tutorial"
273283
style={[a.font_bold]}
274284
disableMismatchWarning>

0 commit comments

Comments
 (0)