You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/frontend/src/Episode/getFinaleTypeName.ts

15 lines
378 B

import translate from 'Utilities/String/translate';
export default function getFinaleTypeName(finaleType?: string): string | null {
switch (finaleType) {
case 'series':
return translate('SeriesFinale');
case 'season':
return translate('SeasonFinale');
case 'midseason':
return translate('MidseasonFinale');
default:
return null;
}
}