about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTakayuki KUSANO <65759+tkusano@users.noreply.github.com>2024-07-03 10:21:33 +0900
committerGitHub <noreply@github.com>2024-07-03 02:21:33 +0100
commit6af78de9eeb3bda01db789f4644f0ff814b1b696 (patch)
tree07395968fbbf31c880b0af9ffa09f5125d148a09 /src
parentcacc4c50687c420e68a569e2b586e087917130ba (diff)
downloadvoidsky-6af78de9eeb3bda01db789f4644f0ff814b1b696.tar.zst
Make tab names translatable (#4724)
Diffstat (limited to 'src')
-rw-r--r--src/screens/StarterPack/StarterPackScreen.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx
index 12b36f43c..b80687aff 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()