Clear unused locales (#2147)

* add some missing intl strings

* remove locales that are not used
zio/stable
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

@ -1,6 +1,6 @@
/** @type {import('@lingui/conf').LinguiConfig} */
module.exports = {
locales: ['en', 'cs', 'fr', 'hi', 'es'],
locales: ['en', 'hi'],
catalogs: [
{
path: '<rootDir>/src/locale/locales/{locale}/messages',

View File

@ -7,10 +7,7 @@ import {messages as messagesHi} from '#/locale/locales/hi/messages'
export const locales = {
en: 'English',
cs: 'Česky',
fr: 'Français',
hi: 'हिंदी',
es: 'Español',
}
export const defaultLocale = 'en'

View File

@ -5,10 +5,7 @@ import {useLanguagePrefs} from '#/state/preferences'
export const locales = {
en: 'English',
cs: 'Česky',
fr: 'Français',
hi: 'हिंदी',
es: 'Español',
}
export const defaultLocale = 'en'

File diff suppressed because it is too large Load Diff

View File

@ -47,7 +47,7 @@ msgstr ""
msgid "{invitesAvailable} invite codes available"
msgstr ""
#: src/view/screens/Search/Search.tsx:86
#: src/view/screens/Search/Search.tsx:87
msgid "{message}"
msgstr ""
@ -359,7 +359,7 @@ msgstr ""
#: src/view/com/modals/LinkWarning.tsx:85
#: src/view/com/modals/Repost.tsx:73
#: src/view/com/modals/Waitlist.tsx:136
#: src/view/screens/Search/Search.tsx:586
#: src/view/screens/Search/Search.tsx:558
#: src/view/shell/desktop/Search.tsx:182
msgid "Cancel"
msgstr ""
@ -464,7 +464,7 @@ msgid "Clear all storage data (restart after this)"
msgstr ""
#: src/view/com/util/forms/SearchInput.tsx:73
#: src/view/screens/Search/Search.tsx:571
#: src/view/screens/Search/Search.tsx:543
msgid "Clear search query"
msgstr ""
@ -796,11 +796,11 @@ msgstr ""
msgid "Enter your new email address below."
msgstr ""
#: src/view/com/auth/login/Login.tsx:83
#: src/view/com/auth/login/Login.tsx:99
msgid "Enter your username and password"
msgstr ""
#: src/view/screens/Search/Search.tsx:104
#: src/view/screens/Search/Search.tsx:105
msgid "Error:"
msgstr ""
@ -827,6 +827,7 @@ msgid "Feedback"
msgstr ""
#: src/view/screens/Feeds.tsx:475
#: src/view/screens/Profile.tsx:164
#: src/view/shell/bottom-bar/BottomBar.tsx:168
#: src/view/shell/desktop/LeftNav.tsx:341
#: src/view/shell/Drawer.tsx:463
@ -903,8 +904,8 @@ msgstr ""
msgid "Forgot password"
msgstr ""
#: src/view/com/auth/login/Login.tsx:111
#: src/view/com/auth/login/Login.tsx:127
#: src/view/com/auth/login/Login.tsx:143
msgid "Forgot Password"
msgstr ""
@ -916,8 +917,8 @@ msgstr ""
msgid "Get Started"
msgstr ""
#: src/view/com/auth/LoggedOut.tsx:53
#: src/view/com/auth/LoggedOut.tsx:54
#: src/view/com/auth/LoggedOut.tsx:68
#: src/view/com/auth/LoggedOut.tsx:69
#: src/view/com/util/moderation/ScreenHider.tsx:105
#: src/view/shell/desktop/LeftNav.tsx:106
msgid "Go back"
@ -1109,8 +1110,8 @@ msgstr ""
msgid "Leaving Bluesky"
msgstr ""
#: src/view/com/auth/login/Login.tsx:112
#: src/view/com/auth/login/Login.tsx:128
#: src/view/com/auth/login/Login.tsx:144
msgid "Let's get your password reset!"
msgstr ""
@ -1132,6 +1133,10 @@ msgstr ""
msgid "Liked by"
msgstr ""
#: src/view/screens/Profile.tsx:163
msgid "Likes"
msgstr ""
#: src/view/screens/Moderation.tsx:203
#~ msgid "Limit the visibility of my account"
#~ msgstr ""
@ -1148,6 +1153,7 @@ msgstr ""
msgid "List Name"
msgstr ""
#: src/view/screens/Profile.tsx:165
#: src/view/shell/desktop/LeftNav.tsx:381
#: src/view/shell/Drawer.tsx:479
#: src/view/shell/Drawer.tsx:480
@ -1191,7 +1197,11 @@ msgstr ""
msgid "Make sure this is where you intend to go!"
msgstr ""
#: src/view/screens/Search/Search.tsx:531
#: src/view/screens/Profile.tsx:162
msgid "Media"
msgstr ""
#: src/view/screens/Search/Search.tsx:503
msgid "Menu"
msgstr ""
@ -1353,9 +1363,9 @@ msgstr ""
#~ msgstr ""
#: src/view/com/modals/ListAddRemoveUsers.tsx:127
#: src/view/screens/Search/Search.tsx:269
#: src/view/screens/Search/Search.tsx:326
#: src/view/screens/Search/Search.tsx:609
#: src/view/screens/Search/Search.tsx:270
#: src/view/screens/Search/Search.tsx:298
#: src/view/screens/Search/Search.tsx:581
#: src/view/shell/desktop/Search.tsx:210
msgid "No results found for {query}"
msgstr ""
@ -1467,7 +1477,7 @@ msgstr ""
msgid "Password"
msgstr ""
#: src/view/com/auth/login/Login.tsx:141
#: src/view/com/auth/login/Login.tsx:157
msgid "Password updated"
msgstr ""
@ -1534,6 +1544,10 @@ msgstr ""
msgid "Post not found"
msgstr ""
#: src/view/screens/Profile.tsx:160
msgid "Posts"
msgstr ""
#: src/view/com/modals/LinkWarning.tsx:44
msgid "Potentially Misleading Link"
msgstr ""
@ -1649,6 +1663,10 @@ msgstr ""
msgid "Removed from list"
msgstr ""
#: src/view/screens/Profile.tsx:161
msgid "Replies"
msgstr ""
#: src/view/screens/PreferencesHomeFeed.tsx:135
msgid "Reply Filters"
msgstr ""
@ -1777,8 +1795,8 @@ msgstr ""
#: src/view/com/modals/ListAddRemoveUsers.tsx:75
#: src/view/com/util/forms/SearchInput.tsx:64
#: src/view/screens/Search/Search.tsx:409
#: src/view/screens/Search/Search.tsx:561
#: src/view/screens/Search/Search.tsx:381
#: src/view/screens/Search/Search.tsx:533
#: src/view/shell/bottom-bar/BottomBar.tsx:146
#: src/view/shell/desktop/LeftNav.tsx:323
#: src/view/shell/desktop/Search.tsx:161
@ -1788,7 +1806,7 @@ msgstr ""
msgid "Search"
msgstr ""
#: src/view/screens/Search/Search.tsx:418
#: src/view/screens/Search/Search.tsx:390
msgid "Search for posts and users."
msgstr ""
@ -1804,7 +1822,7 @@ msgstr ""
msgid "Select Bluesky Social"
msgstr ""
#: src/view/com/auth/login/Login.tsx:101
#: src/view/com/auth/login/Login.tsx:117
msgid "Select from an existing account"
msgstr ""
@ -1926,7 +1944,7 @@ msgstr ""
msgid "Show users"
msgstr ""
#: src/view/com/auth/login/Login.tsx:82
#: src/view/com/auth/login/Login.tsx:98
#: src/view/com/auth/SplashScreen.tsx:49
#: src/view/shell/NavSignupCard.tsx:52
#: src/view/shell/NavSignupCard.tsx:53
@ -1943,7 +1961,7 @@ msgid "Sign in as {0}"
msgstr ""
#: src/view/com/auth/login/ChooseAccountForm.tsx:118
#: src/view/com/auth/login/Login.tsx:100
#: src/view/com/auth/login/Login.tsx:116
msgid "Sign in as..."
msgstr ""
@ -2011,7 +2029,7 @@ msgstr ""
msgid "Subscribe to this list"
msgstr ""
#: src/view/screens/Search/Search.tsx:382
#: src/view/screens/Search/Search.tsx:354
msgid "Suggested Follows"
msgstr ""
@ -2157,7 +2175,7 @@ msgid "Un-mute list"
msgstr ""
#: src/view/com/auth/create/CreateAccount.tsx:64
#: src/view/com/auth/login/Login.tsx:60
#: src/view/com/auth/login/Login.tsx:76
#: src/view/com/auth/login/LoginForm.tsx:117
msgid "Unable to contact your service. Please check your Internet connection."
msgstr ""
@ -2282,7 +2300,7 @@ msgstr ""
#~ msgid "We're sorry, but this feed is currently receiving high traffic and is temporarily unavailable. Please try again later."
#~ msgstr ""
#: src/view/screens/Search/Search.tsx:236
#: src/view/screens/Search/Search.tsx:237
msgid "We're sorry, but your search could not be completed. Please try again in a few minutes."
msgstr ""
@ -2328,7 +2346,7 @@ msgstr ""
msgid "You can change hosting providers at any time."
msgstr ""
#: src/view/com/auth/login/Login.tsx:142
#: src/view/com/auth/login/Login.tsx:158
#: src/view/com/auth/login/PasswordUpdatedForm.tsx:31
msgid "You can now sign in with your new password."
msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -47,7 +47,7 @@ msgstr ""
msgid "{invitesAvailable} invite codes available"
msgstr ""
#: src/view/screens/Search/Search.tsx:86
#: src/view/screens/Search/Search.tsx:87
msgid "{message}"
msgstr ""
@ -359,7 +359,7 @@ msgstr "केवल अक्षर, संख्या, रिक्त स्
#: src/view/com/modals/LinkWarning.tsx:85
#: src/view/com/modals/Repost.tsx:73
#: src/view/com/modals/Waitlist.tsx:136
#: src/view/screens/Search/Search.tsx:586
#: src/view/screens/Search/Search.tsx:558
#: src/view/shell/desktop/Search.tsx:182
msgid "Cancel"
msgstr "कैंसिल"
@ -460,7 +460,7 @@ msgid "Clear all storage data (restart after this)"
msgstr ""
#: src/view/com/util/forms/SearchInput.tsx:73
#: src/view/screens/Search/Search.tsx:571
#: src/view/screens/Search/Search.tsx:543
msgid "Clear search query"
msgstr "खोज क्वेरी साफ़ करें"
@ -792,11 +792,11 @@ msgstr "अपना ईमेल पता दर्ज करें"
msgid "Enter your new email address below."
msgstr "नीचे अपना नया ईमेल पता दर्ज करें।।"
#: src/view/com/auth/login/Login.tsx:83
#: src/view/com/auth/login/Login.tsx:99
msgid "Enter your username and password"
msgstr "अपने यूज़रनेम और पासवर्ड दर्ज करें"
#: src/view/screens/Search/Search.tsx:104
#: src/view/screens/Search/Search.tsx:105
msgid "Error:"
msgstr ""
@ -823,6 +823,7 @@ msgid "Feedback"
msgstr "प्रतिक्रिया"
#: src/view/screens/Feeds.tsx:475
#: src/view/screens/Profile.tsx:164
#: src/view/shell/bottom-bar/BottomBar.tsx:168
#: src/view/shell/desktop/LeftNav.tsx:341
#: src/view/shell/Drawer.tsx:463
@ -895,8 +896,8 @@ msgstr "भूल"
msgid "Forgot password"
msgstr "पासवर्ड भूल गए"
#: src/view/com/auth/login/Login.tsx:111
#: src/view/com/auth/login/Login.tsx:127
#: src/view/com/auth/login/Login.tsx:143
msgid "Forgot Password"
msgstr "पासवर्ड भूल गए"
@ -908,8 +909,8 @@ msgstr "गैलरी"
msgid "Get Started"
msgstr "प्रारंभ करें"
#: src/view/com/auth/LoggedOut.tsx:53
#: src/view/com/auth/LoggedOut.tsx:54
#: src/view/com/auth/LoggedOut.tsx:68
#: src/view/com/auth/LoggedOut.tsx:69
#: src/view/com/util/moderation/ScreenHider.tsx:105
#: src/view/shell/desktop/LeftNav.tsx:106
msgid "Go back"
@ -1101,8 +1102,8 @@ msgstr "उन्हें किसी भी भाषा को देखन
msgid "Leaving Bluesky"
msgstr "लीविंग Bluesky"
#: src/view/com/auth/login/Login.tsx:112
#: src/view/com/auth/login/Login.tsx:128
#: src/view/com/auth/login/Login.tsx:144
msgid "Let's get your password reset!"
msgstr "चलो अपना पासवर्ड रीसेट करें!"
@ -1124,6 +1125,10 @@ msgstr "इस फ़ीड को लाइक करो"
msgid "Liked by"
msgstr "इन यूजर ने लाइक किया है"
#: src/view/screens/Profile.tsx:163
msgid "Likes"
msgstr ""
#: src/view/screens/Moderation.tsx:203
#~ msgid "Limit the visibility of my account"
#~ msgstr ""
@ -1140,6 +1145,7 @@ msgstr "सूची अवतार"
msgid "List Name"
msgstr "सूची का नाम"
#: src/view/screens/Profile.tsx:165
#: src/view/shell/desktop/LeftNav.tsx:381
#: src/view/shell/Drawer.tsx:479
#: src/view/shell/Drawer.tsx:480
@ -1183,7 +1189,11 @@ msgstr ""
msgid "Make sure this is where you intend to go!"
msgstr "यह सुनिश्चित करने के लिए कि आप कहाँ जाना चाहते हैं!"
#: src/view/screens/Search/Search.tsx:531
#: src/view/screens/Profile.tsx:162
msgid "Media"
msgstr ""
#: src/view/screens/Search/Search.tsx:503
msgid "Menu"
msgstr "मेनू"
@ -1345,9 +1355,9 @@ msgstr "\"{query}\" के लिए कोई परिणाम नहीं
#~ msgstr "{0} के लिए कोई परिणाम नहीं मिला"
#: src/view/com/modals/ListAddRemoveUsers.tsx:127
#: src/view/screens/Search/Search.tsx:269
#: src/view/screens/Search/Search.tsx:326
#: src/view/screens/Search/Search.tsx:609
#: src/view/screens/Search/Search.tsx:270
#: src/view/screens/Search/Search.tsx:298
#: src/view/screens/Search/Search.tsx:581
#: src/view/shell/desktop/Search.tsx:210
msgid "No results found for {query}"
msgstr ""
@ -1459,7 +1469,7 @@ msgstr "पृष्ठ नहीं मिला"
msgid "Password"
msgstr "पासवर्ड"
#: src/view/com/auth/login/Login.tsx:141
#: src/view/com/auth/login/Login.tsx:157
msgid "Password updated"
msgstr ""
@ -1526,6 +1536,10 @@ msgstr "पोस्ट भाषा"
msgid "Post not found"
msgstr "पोस्ट नहीं मिला"
#: src/view/screens/Profile.tsx:160
msgid "Posts"
msgstr ""
#: src/view/com/modals/LinkWarning.tsx:44
msgid "Potentially Misleading Link"
msgstr "शायद एक भ्रामक लिंक"
@ -1641,6 +1655,10 @@ msgstr "इस फ़ीड को सहेजे गए फ़ीड से
msgid "Removed from list"
msgstr ""
#: src/view/screens/Profile.tsx:161
msgid "Replies"
msgstr ""
#: src/view/screens/PreferencesHomeFeed.tsx:135
msgid "Reply Filters"
msgstr "फिल्टर"
@ -1769,8 +1787,8 @@ msgstr "सहेजे गए फ़ीड"
#: src/view/com/modals/ListAddRemoveUsers.tsx:75
#: src/view/com/util/forms/SearchInput.tsx:64
#: src/view/screens/Search/Search.tsx:409
#: src/view/screens/Search/Search.tsx:561
#: src/view/screens/Search/Search.tsx:381
#: src/view/screens/Search/Search.tsx:533
#: src/view/shell/bottom-bar/BottomBar.tsx:146
#: src/view/shell/desktop/LeftNav.tsx:323
#: src/view/shell/desktop/Search.tsx:161
@ -1780,7 +1798,7 @@ msgstr "सहेजे गए फ़ीड"
msgid "Search"
msgstr "खोज"
#: src/view/screens/Search/Search.tsx:418
#: src/view/screens/Search/Search.tsx:390
msgid "Search for posts and users."
msgstr ""
@ -1796,7 +1814,7 @@ msgstr "आगे क्या है"
msgid "Select Bluesky Social"
msgstr "Bluesky Social का चयन करें"
#: src/view/com/auth/login/Login.tsx:101
#: src/view/com/auth/login/Login.tsx:117
msgid "Select from an existing account"
msgstr "मौजूदा खाते से चुनें"
@ -1918,7 +1936,7 @@ msgstr "रीपोस्ट दिखाएँ"
msgid "Show users"
msgstr "लोग दिखाएँ"
#: src/view/com/auth/login/Login.tsx:82
#: src/view/com/auth/login/Login.tsx:98
#: src/view/com/auth/SplashScreen.tsx:49
#: src/view/shell/NavSignupCard.tsx:52
#: src/view/shell/NavSignupCard.tsx:53
@ -1935,7 +1953,7 @@ msgid "Sign in as {0}"
msgstr "{0} के रूप में साइन इन करें"
#: src/view/com/auth/login/ChooseAccountForm.tsx:118
#: src/view/com/auth/login/Login.tsx:100
#: src/view/com/auth/login/Login.tsx:116
msgid "Sign in as..."
msgstr "... के रूप में साइन इन करें"
@ -2003,7 +2021,7 @@ msgstr "सब्सक्राइब"
msgid "Subscribe to this list"
msgstr "इस सूची को सब्सक्राइब करें"
#: src/view/screens/Search/Search.tsx:382
#: src/view/screens/Search/Search.tsx:354
msgid "Suggested Follows"
msgstr "अनुशंसित लोग"
@ -2149,7 +2167,7 @@ msgid "Un-mute list"
msgstr ""
#: src/view/com/auth/create/CreateAccount.tsx:64
#: src/view/com/auth/login/Login.tsx:60
#: src/view/com/auth/login/Login.tsx:76
#: src/view/com/auth/login/LoginForm.tsx:117
msgid "Unable to contact your service. Please check your Internet connection."
msgstr "आपकी सेवा से संपर्क करने में असमर्थ। कृपया अपने इंटरनेट कनेक्शन की जांच करें।।"
@ -2274,7 +2292,7 @@ msgstr "हम आपके हमारी सेवा में शामि
#~ msgid "We're sorry, but this feed is currently receiving high traffic and is temporarily unavailable. Please try again later."
#~ msgstr ""
#: src/view/screens/Search/Search.tsx:236
#: src/view/screens/Search/Search.tsx:237
msgid "We're sorry, but your search could not be completed. Please try again in a few minutes."
msgstr ""
@ -2320,7 +2338,7 @@ msgstr "हाँ"
msgid "You can change hosting providers at any time."
msgstr "आप किसी भी समय होस्टिंग प्रदाताओं को बदल सकते हैं।।"
#: src/view/com/auth/login/Login.tsx:142
#: src/view/com/auth/login/Login.tsx:158
#: src/view/com/auth/login/PasswordUpdatedForm.tsx:31
msgid "You can now sign in with your new password."
msgstr "अब आप अपने नए पासवर्ड के साथ साइन इन कर सकते हैं।।"

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