diff options
author | Ansh <anshnanda10@gmail.com> | 2023-12-08 10:45:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-09 00:15:05 +0530 |
commit | 528b4b5017bb553c40c91443657eb4faf65c80b9 (patch) | |
tree | db8373ce9dd86be0115e9a84188cb2af6fcb59a7 /src/view/screens/Profile.tsx | |
parent | 7b5033118895448ae36c0ac2d76683ecd838f5e2 (diff) | |
download | voidsky-528b4b5017bb553c40c91443657eb4faf65c80b9.tar.zst |
Clear unused locales (#2147)
* add some missing intl strings * remove locales that are not used
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 21353e5d3..ae5270386 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -157,14 +157,14 @@ function ProfileScreenLoaded({ const showListsTab = hasSession && (isMe || extraInfoQuery.data?.hasLists) const sectionTitles = useMemo<string[]>(() => { return [ - 'Posts', - showRepliesTab ? 'Replies' : undefined, - 'Media', - showLikesTab ? 'Likes' : undefined, - showFeedsTab ? 'Feeds' : undefined, - showListsTab ? 'Lists' : undefined, + _(msg`Posts`), + showRepliesTab ? _(msg`Replies`) : undefined, + _(msg`Media`), + showLikesTab ? _(msg`Likes`) : undefined, + showFeedsTab ? _(msg`Feeds`) : undefined, + showListsTab ? _(msg`Lists`) : undefined, ].filter(Boolean) as string[] - }, [showRepliesTab, showLikesTab, showFeedsTab, showListsTab]) + }, [showRepliesTab, showLikesTab, showFeedsTab, showListsTab, _]) let nextIndex = 0 const postsIndex = nextIndex++ |