From 2ef2ae1c6c8b051b6ea6674d1a88f59ed14f1a3f Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Fri, 30 Aug 2024 23:59:49 +0900 Subject: [PATCH] Improve localization (#5008) * Update QrCode.tsx * Update generate-starterpack.ts --- src/components/StarterPack/QrCode.tsx | 32 +++++++++++++++------------ 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 a8a2e349..8ce5cbbb 100644 --- a/src/components/StarterPack/QrCode.tsx +++ b/src/components/StarterPack/QrCode.tsx @@ -59,20 +59,24 @@ export const QrCode = React.forwardRef(function QrCode( - - - on - - - - - - + + + on + + + + + + + + diff --git a/src/lib/generate-starterpack.ts b/src/lib/generate-starterpack.ts index 64d30a95..dba98b94 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,