diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-08-30 23:59:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 09:59:49 -0500 |
commit | 2ef2ae1c6c8b051b6ea6674d1a88f59ed14f1a3f (patch) | |
tree | 47142e77ba303c0167c8b6fbfc0b71c7122e5466 | |
parent | 05b73d4d1e886e424c75f8ecca9c756aa7b027dd (diff) | |
download | voidsky-2ef2ae1c6c8b051b6ea6674d1a88f59ed14f1a3f.tar.zst |
Improve localization (#5008)
* Update QrCode.tsx * Update generate-starterpack.ts
-rw-r--r-- | src/components/StarterPack/QrCode.tsx | 32 | ||||
-rw-r--r-- | src/lib/generate-starterpack.ts | 3 |
2 files changed, 19 insertions, 16 deletions
diff --git a/src/components/StarterPack/QrCode.tsx b/src/components/StarterPack/QrCode.tsx index a8a2e3491..8ce5cbbb1 100644 --- a/src/components/StarterPack/QrCode.tsx +++ b/src/components/StarterPack/QrCode.tsx @@ -59,20 +59,24 @@ export const QrCode = React.forwardRef<ViewShot, Props>(function QrCode( <QrCodeInner link={link} /> </View> - <View style={[a.flex_row, a.align_center, {gap: 5}]}> - <Text - style={[ - a.font_bold, - a.text_center, - {color: 'white', fontSize: 18}, - ]}> - <Trans>on</Trans> - </Text> - <Logo width={26} fill="white" /> - <View style={[{marginTop: 5, marginLeft: 2.5}]}> - <Logotype width={68} fill="white" /> - </View> - </View> + <Text + style={[ + a.flex, + a.flex_row, + a.align_center, + a.font_bold, + {color: 'white', fontSize: 18, gap: 6}, + ]}> + <Trans> + on + <View style={[a.flex_row, a.align_center, {gap: 6}]}> + <Logo width={25} fill="white" /> + <View style={[{marginTop: 3.5}]}> + <Logotype width={72} fill="white" /> + </View> + </View> + </Trans> + </Text> </View> </LinearGradientBackground> </ViewShot> diff --git a/src/lib/generate-starterpack.ts b/src/lib/generate-starterpack.ts index 64d30a954..dba98b942 100644 --- a/src/lib/generate-starterpack.ts +++ b/src/lib/generate-starterpack.ts @@ -65,7 +65,6 @@ export function useGenerateStarterPackMutation({ }) { const {_} = useLingui() const agent = useAgent() - const starterPackString = _(msg`Starter Pack`) return useMutation<{uri: string; cid: string}, Error, void>({ mutationFn: async () => { @@ -106,7 +105,7 @@ export function useGenerateStarterPackMutation({ 25, true, ) - const starterPackName = `${displayName}'s ${starterPackString}` + const starterPackName = _(msg`${displayName}'s Starter Pack`) const list = await createStarterPackList({ name: starterPackName, |