Add translations to SearchFooter

This commit is contained in:
Bogdan
2023-07-08 18:16:02 +03:00
parent bd6a37dc8c
commit 96340909f1
2 changed files with 6 additions and 2 deletions

View File

@@ -191,10 +191,10 @@ class SearchFooter extends Component {
icon = icons.SEARCH; icon = icons.SEARCH;
} }
let footerLabel = `Search ${searchIndexerIds.length === 0 ? 'all' : searchIndexerIds.length} Indexers`; let footerLabel = searchIndexerIds.length === 0 ? translate('SearchAllIndexers') : translate('SearchCountIndexers', [searchIndexerIds.length]);
if (isPopulated) { if (isPopulated) {
footerLabel = selectedCount === 0 ? `Found ${itemCount} releases` : `Selected ${selectedCount} of ${itemCount} releases`; footerLabel = selectedCount === 0 ? translate('FoundCountReleases', [itemCount]) : translate('SelectedCountOfCountReleases', [selectedCount, itemCount]);
} }
return ( return (

View File

@@ -180,6 +180,7 @@
"FocusSearchBox": "Focus Search Box", "FocusSearchBox": "Focus Search Box",
"Folder": "Folder", "Folder": "Folder",
"ForMoreInformationOnTheIndividualDownloadClients": "For more information on the individual download clients, click on the info buttons.", "ForMoreInformationOnTheIndividualDownloadClients": "For more information on the individual download clients, click on the info buttons.",
"FoundCountReleases": "Found {0} releases",
"FullSync": "Full Sync", "FullSync": "Full Sync",
"General": "General", "General": "General",
"GeneralSettings": "General Settings", "GeneralSettings": "General Settings",
@@ -389,7 +390,9 @@
"Scheduled": "Scheduled", "Scheduled": "Scheduled",
"ScriptPath": "Script Path", "ScriptPath": "Script Path",
"Search": "Search", "Search": "Search",
"SearchAllIndexers": "Search all indexers",
"SearchCapabilities": "Search Capabilities", "SearchCapabilities": "Search Capabilities",
"SearchCountIndexers": "Search {0} indexers",
"SearchIndexers": "Search Indexers", "SearchIndexers": "Search Indexers",
"SearchType": "Search Type", "SearchType": "Search Type",
"SearchTypes": "Search Types", "SearchTypes": "Search Types",
@@ -398,6 +401,7 @@
"Seeders": "Seeders", "Seeders": "Seeders",
"SelectAll": "Select All", "SelectAll": "Select All",
"SelectIndexers": "Select Indexers", "SelectIndexers": "Select Indexers",
"SelectedCountOfCountReleases": "Selected {0} of {0} releases",
"SemiPrivate": "Semi-Private", "SemiPrivate": "Semi-Private",
"SendAnonymousUsageData": "Send Anonymous Usage Data", "SendAnonymousUsageData": "Send Anonymous Usage Data",
"SetTags": "Set Tags", "SetTags": "Set Tags",