diff --git a/front/src/components/requests/Card.vue b/front/src/components/requests/Card.vue index 17fecde52..9d0bf0b77 100644 --- a/front/src/components/requests/Card.vue +++ b/front/src/components/requests/Card.vue @@ -23,7 +23,7 @@ Create import + class="ui mini basic green right floated button">{{ $t('Create import') }} diff --git a/front/src/components/requests/Form.vue b/front/src/components/requests/Form.vue index 68c725ba7..b03e1545b 100644 --- a/front/src/components/requests/Form.vue +++ b/front/src/components/requests/Form.vue @@ -1,30 +1,30 @@ - Something's missing in the library? Let us know what you would like to listen! + {{ $t('Something\'s missing in the library? Let us know what you would like to listen!') }} - Artist name + {{ $t('Artist name') }} - Albums - Leave this field empty if you're requesting the whole discography. + {{ $t('Albums') }} + {{ $t('Leave this field empty if you\'re requesting the whole discography.') }} - Comment + {{ $t('Comment') }} - Submit + {{ $t('Submit') }} Request submitted! - We've received your request, you'll get some groove soon ;) - Submit another request + {{ $t('We\'ve received your request, you\'ll get some groove soon ;)') }} + {{ $t('Submit another request') }} - Pending requests + {{ $t('Pending requests') }} diff --git a/front/src/components/requests/RequestsList.vue b/front/src/components/requests/RequestsList.vue index 5d4db243a..4464031c5 100644 --- a/front/src/components/requests/RequestsList.vue +++ b/front/src/components/requests/RequestsList.vue @@ -1,15 +1,15 @@ - Music requests + {{ $t('Music requests') }} - Search + {{ $t('Search') }} - Ordering + {{ $t('Ordering') }} {{ option[1] }} @@ -17,14 +17,14 @@ - Ordering direction + {{ $t('Ordering direction') }} Ascending Descending - Results per page + {{ $t('Results per page') }} 12 25 @@ -96,12 +96,7 @@ export default { query: this.defaultQuery, paginateBy: parseInt(this.defaultPaginateBy || 12), orderingDirection: defaultOrdering.direction, - ordering: defaultOrdering.field, - orderingOptions: [ - ['creation_date', 'Creation date'], - ['artist_name', 'Artist name'], - ['user__username', 'User'] - ] + ordering: defaultOrdering.field } }, created () { @@ -141,6 +136,15 @@ export default { this.page = page } }, + computed: { + orderingOptions: function () { + return [ + ['creation_date', this.$t('Creation date')], + ['artist_name', this.$t('Artist name')], + ['user__username', this.$t('User')] + ] + } + }, watch: { page () { this.updateQueryString()
Something's missing in the library? Let us know what you would like to listen!
{{ $t('Something\'s missing in the library? Let us know what you would like to listen!') }}
Leave this field empty if you're requesting the whole discography.
{{ $t('Leave this field empty if you\'re requesting the whole discography.') }}
We've received your request, you'll get some groove soon ;)
{{ $t('We\'ve received your request, you\'ll get some groove soon ;)') }}