Make tab names translatable (#4724)

zio/stable
Takayuki KUSANO 2024-07-03 10:21:33 +09:00 committed by GitHub
parent cacc4c5068
commit 6af78de9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -176,11 +176,12 @@ function StarterPackScreenLoaded({
const showPeopleTab = Boolean(starterPack.list) const showPeopleTab = Boolean(starterPack.list)
const showFeedsTab = Boolean(starterPack.feeds?.length) const showFeedsTab = Boolean(starterPack.feeds?.length)
const showPostsTab = Boolean(starterPack.list) const showPostsTab = Boolean(starterPack.list)
const {_} = useLingui()
const tabs = [ const tabs = [
...(showPeopleTab ? ['People'] : []), ...(showPeopleTab ? [_(msg`People`)] : []),
...(showFeedsTab ? ['Feeds'] : []), ...(showFeedsTab ? [_(msg`Feeds`)] : []),
...(showPostsTab ? ['Posts'] : []), ...(showPostsTab ? [_(msg`Posts`)] : []),
] ]
const qrCodeDialogControl = useDialogControl() const qrCodeDialogControl = useDialogControl()