1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Translate frontend series pages

This commit is contained in:
Stevie Robinson
2023-09-01 02:47:17 +02:00
committed by GitHub
parent 33c52a7037
commit c123596c68
43 changed files with 543 additions and 279 deletions
@@ -9,6 +9,7 @@ import { icons } from 'Helpers/Props';
import { executeCommand } from 'Store/Actions/commandActions';
import createCommandExecutingSelector from 'Store/Selectors/createCommandExecutingSelector';
import createSeriesClientSideCollectionItemsSelector from 'Store/Selectors/createSeriesClientSideCollectionItemsSelector';
import translate from 'Utilities/String/translate';
import getSelectedIds from 'Utilities/Table/getSelectedIds';
interface SeriesIndexRefreshSeriesButtonProps {
@@ -42,12 +43,12 @@ function SeriesIndexRefreshSeriesButton(
? selectedSeriesIds
: items.map((m) => m.id);
let refreshLabel = 'Update All';
let refreshLabel = translate('UpdateAll');
if (selectedSeriesIds.length > 0) {
refreshLabel = 'Update Selected';
refreshLabel = translate('UpdateSelected');
} else if (selectedFilterKey !== 'all') {
refreshLabel = 'Update Filtered';
refreshLabel = translate('UpdateFiltered');
}
const onPress = useCallback(() => {