Clear unused locales (#2147)

* add some missing intl strings

* remove locales that are not used
This commit is contained in:
Ansh 2023-12-08 10:45:05 -08:00 committed by GitHub
parent 7b50331188
commit 528b4b5017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 92 additions and 7388 deletions

View file

@ -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++