Add some translations to album/artist details

This commit is contained in:
Bogdan 2024-01-06 13:08:40 +02:00
commit a1506fc92b
5 changed files with 10 additions and 9 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -89,7 +89,7 @@ class AddNewArtistSearchResult extends Component {
const linkProps = isExistingArtist ? { to: `/artist/${foreignArtistId}` } : { onPress: this.onPress }; 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); const height = calculateHeight(230, isSmallScreen);