Make tab names translatable (#4724)
parent
cacc4c5068
commit
6af78de9ee
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue