diff options
author | Takayuki KUSANO <65759+tkusano@users.noreply.github.com> | 2024-07-03 10:21:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 02:21:33 +0100 |
commit | 6af78de9eeb3bda01db789f4644f0ff814b1b696 (patch) | |
tree | 07395968fbbf31c880b0af9ffa09f5125d148a09 | |
parent | cacc4c50687c420e68a569e2b586e087917130ba (diff) | |
download | voidsky-6af78de9eeb3bda01db789f4644f0ff814b1b696.tar.zst |
Make tab names translatable (#4724)
-rw-r--r-- | src/screens/StarterPack/StarterPackScreen.tsx | 7 |
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() |