Add some translations to album/artist details

pull/4412/head
Bogdan 11 months ago
parent ddb31a3718
commit a1506fc92b

@ -119,6 +119,7 @@
margin: 5px 10px 5px 0;
}
.releaseDate,
.sizeOnDisk,
.qualityProfileName,
.links,

@ -19,6 +19,7 @@ interface CssExports {
'monitorToggleButton': string;
'overview': string;
'qualityProfileName': string;
'releaseDate': string;
'sizeOnDisk': string;
'tags': string;
'title': string;

@ -415,6 +415,7 @@ class AlbumDetails extends Component {
<Label
className={styles.detailsLabel}
title={translate('ReleaseDate')}
size={sizes.LARGE}
>
<Icon
@ -422,10 +423,8 @@ class AlbumDetails extends Component {
size={17}
/>
<span className={styles.sizeOnDisk}>
{
moment(releaseDate).format(shortDateFormat)
}
<span className={styles.releaseDate}>
{moment(releaseDate).format(shortDateFormat)}
</span>
</Label>
@ -466,7 +465,7 @@ class AlbumDetails extends Component {
/>
<span className={styles.qualityProfileName}>
{monitored ? 'Monitored' : 'Unmonitored'}
{monitored ? translate('Monitored') : translate('Unmonitored')}
</span>
</Label>
@ -500,7 +499,7 @@ class AlbumDetails extends Component {
/>
<span className={styles.links}>
Links
{translate('Links')}
</span>
</Label>
}

@ -242,7 +242,7 @@ class ArtistDetails extends Component {
} = this.state;
const continuing = status === 'continuing';
const endedString = artistType === 'Person' ? 'Deceased' : 'Inactive';
const endedString = artistType === 'Person' ? translate('Deceased') : translate('Inactive');
let trackFilesCountMessage = translate('TrackFilesCountMessage');
@ -556,7 +556,7 @@ class ArtistDetails extends Component {
/>
<span className={styles.links}>
Links
{translate('Links')}
</span>
</Label>
}

@ -89,7 +89,7 @@ class AddNewArtistSearchResult extends Component {
const linkProps = isExistingArtist ? { to: `/artist/${foreignArtistId}` } : { onPress: this.onPress };
const endedString = artistType === 'Person' ? 'Deceased' : 'Inactive';
const endedString = artistType === 'Person' ? translate('Deceased') : translate('Inactive');
const height = calculateHeight(230, isSmallScreen);

Loading…
Cancel
Save