Translations for InteractiveSearchRow

Closes #4077
This commit is contained in:
Bogdan 2024-03-09 11:04:36 +02:00
parent 29c77ec3a1
commit 468f3acf85
2 changed files with 8 additions and 4 deletions

View file

@ -48,12 +48,12 @@ function getDownloadTooltip(isGrabbing, isGrabbed, grabError) {
if (isGrabbing) {
return '';
} else if (isGrabbed) {
return 'Added to downloaded queue';
return translate('AddedToDownloadQueue');
} else if (grabError) {
return grabError;
}
return 'Add to downloaded queue';
return translate('AddToDownloadQueue');
}
class InteractiveSearchRow extends Component {
@ -236,7 +236,9 @@ class InteractiveSearchRow extends Component {
isOpen={this.state.isConfirmGrabModalOpen}
kind={kinds.WARNING}
title={translate('GrabRelease')}
message={translate('GrabReleaseMessageText', [title])}
message={translate('GrabReleaseUnknownArtistOrAlbumMessageText', {
title
})}
confirmLabel={translate('Grab')}
onConfirm={this.onGrabConfirm}
onCancel={this.onGrabCancel}