diff options
author | surfdude29 <149612116+surfdude29@users.noreply.github.com> | 2025-08-28 00:12:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-27 18:12:01 -0500 |
commit | 01c20958c1ef750f1d848f49caf920157c3cb00d (patch) | |
tree | 368689a3ce5161ac4e89bc855f30100cd579eada | |
parent | 99722436b1d9970b4e72bd8196bcd20700fd48c0 (diff) | |
download | voidsky-01c20958c1ef750f1d848f49caf920157c3cb00d.tar.zst |
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
-rw-r--r-- | src/components/moderation/ContentHider.tsx | 2 | ||||
-rw-r--r-- | src/components/verification/VerificationsDialog.tsx | 9 | ||||
-rw-r--r-- | src/components/verification/VerifierDialog.tsx | 9 | ||||
-rw-r--r-- | src/screens/Moderation/VerificationSettings.tsx | 7 | ||||
-rw-r--r-- | src/screens/Profile/Header/EditProfileDialog.tsx | 9 | ||||
-rw-r--r-- | src/screens/Settings/components/ChangeHandleDialog.tsx | 16 |
6 files changed, 41 insertions, 11 deletions
diff --git a/src/components/moderation/ContentHider.tsx b/src/components/moderation/ContentHider.tsx index 549a1b9f0..79756c561 100644 --- a/src/components/moderation/ContentHider.tsx +++ b/src/components/moderation/ContentHider.tsx @@ -215,7 +215,7 @@ function ContentHiderActive({ control.open() }} label={_( - msg`Learn more about the moderation applied to this content.`, + msg`Learn more about the moderation applied to this content`, )} style={[a.pt_sm]}> {state => ( diff --git a/src/components/verification/VerificationsDialog.tsx b/src/components/verification/VerificationsDialog.tsx index 447e39e97..99ed00eeb 100644 --- a/src/components/verification/VerificationsDialog.tsx +++ b/src/components/verification/VerificationsDialog.tsx @@ -147,7 +147,12 @@ function Inner({ <Link overridePresentation to={urls.website.blog.initialVerificationAnnouncement} - label={_(msg`Learn more about verification on Bluesky`)} + label={_( + msg({ + message: `Learn more about verification on Bluesky`, + context: `english-only-resource`, + }), + )} size="small" variant="solid" color="secondary" @@ -162,7 +167,7 @@ function Inner({ ) }}> <ButtonText> - <Trans>Learn more</Trans> + <Trans context="english-only-resource">Learn more</Trans> </ButtonText> </Link> </View> diff --git a/src/components/verification/VerifierDialog.tsx b/src/components/verification/VerifierDialog.tsx index c62f01832..b4756a85b 100644 --- a/src/components/verification/VerifierDialog.tsx +++ b/src/components/verification/VerifierDialog.tsx @@ -114,7 +114,12 @@ function Inner({ <Link overridePresentation to={urls.website.blog.initialVerificationAnnouncement} - label={_(msg`Learn more about verification on Bluesky`)} + label={_( + msg({ + message: `Learn more about verification on Bluesky`, + context: `english-only-resource`, + }), + )} size="small" variant="solid" color="primary" @@ -129,7 +134,7 @@ function Inner({ ) }}> <ButtonText> - <Trans>Learn more</Trans> + <Trans context="english-only-resource">Learn more</Trans> </ButtonText> </Link> <Button diff --git a/src/screens/Moderation/VerificationSettings.tsx b/src/screens/Moderation/VerificationSettings.tsx index cd023ae56..aec70cf85 100644 --- a/src/screens/Moderation/VerificationSettings.tsx +++ b/src/screens/Moderation/VerificationSettings.tsx @@ -44,7 +44,12 @@ export function Screen() { <InlineLinkText overridePresentation to={urls.website.blog.initialVerificationAnnouncement} - label={_(msg`Learn more`)} + label={_( + msg({ + message: `Learn more`, + context: `english-only-resource`, + }), + )} onPress={() => { logger.metric( 'verification:learn-more', diff --git a/src/screens/Profile/Header/EditProfileDialog.tsx b/src/screens/Profile/Header/EditProfileDialog.tsx index 2317ff57a..eb9e9179d 100644 --- a/src/screens/Profile/Header/EditProfileDialog.tsx +++ b/src/screens/Profile/Header/EditProfileDialog.tsx @@ -347,9 +347,14 @@ function DialogInner({ You are verified. You will lose your verification status if you change your display name.{' '} <InlineLinkText - label={_(msg`Learn more`)} + label={_( + msg({ + message: `Learn more`, + context: `english-only-resource`, + }), + )} to={urls.website.blog.initialVerificationAnnouncement}> - <Trans>Learn more.</Trans> + <Trans context="english-only-resource">Learn more.</Trans> </InlineLinkText> </Trans> </Admonition> diff --git a/src/screens/Settings/components/ChangeHandleDialog.tsx b/src/screens/Settings/components/ChangeHandleDialog.tsx index 59e004252..8002c172f 100644 --- a/src/screens/Settings/components/ChangeHandleDialog.tsx +++ b/src/screens/Settings/components/ChangeHandleDialog.tsx @@ -209,9 +209,14 @@ function ProvidedHandlePage({ You are verified. You will lose your verification status if you change your handle.{' '} <InlineLinkText - label={_(msg`Learn more`)} + label={_( + msg({ + message: `Learn more`, + context: `english-only-resource`, + }), + )} to={urls.website.blog.initialVerificationAnnouncement}> - <Trans>Learn more.</Trans> + <Trans context="english-only-resource">Learn more.</Trans> </InlineLinkText> </Trans> </Admonition> @@ -268,7 +273,12 @@ function ProvidedHandlePage({ If you have your own domain, you can use that as your handle. This lets you self-verify your identity.{' '} <InlineLinkText - label={_(msg`learn more`)} + label={_( + msg({ + message: `Learn more`, + context: `english-only-resource`, + }), + )} to="https://bsky.social/about/blog/4-28-2023-domain-handle-tutorial" style={[a.font_bold]} disableMismatchWarning> |