Allow artist albums dropdown fields to be translated

This commit is contained in:
Matthias Meulien
2020-08-09 21:44:59 +02:00
parent 2ba5f6ede6
commit 03bfce5112
2 changed files with 19 additions and 8 deletions

View File

@ -238,6 +238,17 @@ artist:
wiki:
published: 'Published: %{date}'
origin: 'Origin: '
albums:
sort:
default: Default
name: Name
release_date: Date
track_count: Tracks
filter:
all: All
albums: Albums
singles: Singles
compilations: Compilations
debug:
title: Debug
ui:

View File

@ -192,38 +192,38 @@ class Artist extends React.Component {
const sort_options = [
{
value: null,
label: 'Default',
label: i18n('artist.albums.sort.default'),
},
{
value: 'name',
label: 'Name',
label: i18n('artist.albums.sort.name'),
},
{
value: 'release_date',
label: 'Date',
label: i18n('artist.albums.sort.release_date'),
},
{
value: 'tracks_uris.length',
label: 'Tracks',
label: i18n('artist.albums.sort.track_count'),
},
];
const filter_options = [
{
value: null,
label: 'All',
label: i18n('artist.albums.filter.all'),
},
{
value: 'album',
label: 'Albums',
label: i18n('artist.albums.filter.albums'),
},
{
value: 'single',
label: 'Singles',
label: i18n('artist.albums.filter.singles'),
},
{
value: 'compilation',
label: 'Compilations',
label: i18n('artist.albums.filter.compilations'),
},
];