From 6af78de9eeb3bda01db789f4644f0ff814b1b696 Mon Sep 17 00:00:00 2001 From: Takayuki KUSANO <65759+tkusano@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:21:33 +0900 Subject: [PATCH] Make tab names translatable (#4724) --- src/screens/StarterPack/StarterPackScreen.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx index 12b36f43..b80687af 100644 --- a/src/screens/StarterPack/StarterPackScreen.tsx +++ b/src/screens/StarterPack/StarterPackScreen.tsx @@ -176,11 +176,12 @@ function StarterPackScreenLoaded({ const showPeopleTab = Boolean(starterPack.list) const showFeedsTab = Boolean(starterPack.feeds?.length) const showPostsTab = Boolean(starterPack.list) + const {_} = useLingui() const tabs = [ - ...(showPeopleTab ? ['People'] : []), - ...(showFeedsTab ? ['Feeds'] : []), - ...(showPostsTab ? ['Posts'] : []), + ...(showPeopleTab ? [_(msg`People`)] : []), + ...(showFeedsTab ? [_(msg`Feeds`)] : []), + ...(showPostsTab ? [_(msg`Posts`)] : []), ] const qrCodeDialogControl = useDialogControl()