diff options
author | surfdude29 <149612116+surfdude29@users.noreply.github.com> | 2025-08-26 23:09:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-26 15:09:47 -0700 |
commit | 39c6984c6edabcb432ef884e7d3b12ae51a2c09e (patch) | |
tree | 078ebb6063fb2401511619d4b5130080549fb6d4 | |
parent | 9f7c920346f3e650f530930cd22ca241fc6cbd7f (diff) | |
download | voidsky-39c6984c6edabcb432ef884e7d3b12ae51a2c09e.tar.zst |
Mark label for translation in `LoggedOutCTA.tsx` (#8908)
* Mark label for translation in `LoggedOutCTA.tsx` * Update LoggedOutCTA.tsx
-rw-r--r-- | src/components/LoggedOutCTA.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/LoggedOutCTA.tsx b/src/components/LoggedOutCTA.tsx index 7ec8c2264..0bafbd45f 100644 --- a/src/components/LoggedOutCTA.tsx +++ b/src/components/LoggedOutCTA.tsx @@ -1,5 +1,6 @@ import {View, type ViewStyle} from 'react-native' -import {Trans} from '@lingui/macro' +import {msg, Trans} from '@lingui/macro' +import {useLingui} from '@lingui/react' import {type Gate} from '#/lib/statsig/gates' import {useGate} from '#/lib/statsig/statsig' @@ -21,6 +22,7 @@ export function LoggedOutCTA({style, gateName}: LoggedOutCTAProps) { const {requestSwitchToAccount} = useLoggedOutViewControls() const gate = useGate() const t = useTheme() + const {_} = useLingui() // Only show for logged-out users on web if (hasSession || !isWeb) { @@ -66,7 +68,7 @@ export function LoggedOutCTA({style, gateName}: LoggedOutCTAProps) { onPress={() => { requestSwitchToAccount({requestedAccount: 'new'}) }} - label="Create account" + label={_(msg`Create account`)} size="small" variant="solid" color="primary"> |