Fixed broken translations

This commit is contained in:
Eliot Berriot 2018-04-16 22:46:54 +02:00
parent a57081a4e9
commit fd6ab881a7
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
4 changed files with 17 additions and 11 deletions

View File

@ -80,16 +80,16 @@ export default {
'privacy_level': { 'privacy_level': {
type: 'dropdown', type: 'dropdown',
initial: this.$store.state.auth.profile.privacy_level, initial: this.$store.state.auth.profile.privacy_level,
label: this.$t('Activity visibility'), label: 'Activity visibility',
help: this.$t('Determine the visibility level of your activity'), help: 'Determine the visibility level of your activity',
choices: [ choices: [
{ {
value: 'me', value: 'me',
label: this.$t('Nobody except me') label: 'Nobody except me'
}, },
{ {
value: 'instance', value: 'instance',
label: this.$t('Everyone on this instance') label: 'Everyone on this instance'
} }
] ]
} }

View File

@ -85,9 +85,9 @@ export default {
orderingDirection: defaultOrdering.direction, orderingDirection: defaultOrdering.direction,
ordering: defaultOrdering.field, ordering: defaultOrdering.field,
orderingOptions: [ orderingOptions: [
['title', this.$t('Track name')], ['title', 'Track name'],
['album__title', this.$t('Album name')], ['album__title', 'Album name'],
['artist__name', this.$t('Artist name')] ['artist__name', 'Artist name']
] ]
} }
}, },

View File

@ -53,8 +53,14 @@ export default Vue.extend({
releaseImportData: [], releaseImportData: [],
releaseGroupsData: {}, releaseGroupsData: {},
releases: [], releases: [],
releaseTypes: [this.$t('Album')], releaseTypes: ['Album'],
availableReleaseTypes: [this.$t('Album'), this.$t('Live'), this.$t('Compilation'), this.$t('EP'), this.$t('Single'), this.$t('Other')] availableReleaseTypes: [
'Album',
'Live',
'Compilation',
'EP',
'Single',
'Other']
} }
}, },
created () { created () {

View File

@ -38,13 +38,13 @@
<div class="ui hidden divider"></div> <div class="ui hidden divider"></div>
<div class="ui attached segment"> <div class="ui attached segment">
<template v-if="currentStep === 0"> <template v-if="currentStep === 0">
<i18next tag="p" path="First, choose where you want to import the music from:"/> <i18next tag="p" path="First, choose where you want to import the music from"/>
<form class="ui form"> <form class="ui form">
<div class="field"> <div class="field">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input type="radio" id="external" value="external" v-model="currentSource"> <input type="radio" id="external" value="external" v-model="currentSource">
<label for="external"> <label for="external">
<i18next path="External source. Supported backends:"/> <i18next path="External source. Supported backends"/>
<div v-for="backend in backends" class="ui basic label"> <div v-for="backend in backends" class="ui basic label">
<i v-if="backend.icon" :class="[backend.icon, 'icon']"></i> <i v-if="backend.icon" :class="[backend.icon, 'icon']"></i>
{{ backend.label }} {{ backend.label }}