Skip to content
Snippets Groups Projects
Commit 984abf77 authored by Baptiste Gelez's avatar Baptiste Gelez
Browse files

Merge branch 'i18n-metadata' into 'develop'

i18n: Metadata

See merge request funkwhale/funkwhale!136
parents 96edb7f6 212363b4
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
{{ group['first-release-date'] }} {{ group['first-release-date'] }}
</td> </td>
<td colspan="3"> <td colspan="3">
<a :href="getMusicbrainzUrl('release-group', group.id)" class="discrete link" target="_blank" title="View on MusicBrainz"> <a :href="getMusicbrainzUrl('release-group', group.id)" class="discrete link" target="_blank" :title="$t('View on MusicBrainz')">
{{ group.title }} {{ group.title }}
</a> </a>
</td> </td>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{{ track.position }} {{ track.position }}
</td> </td>
<td colspan="3"> <td colspan="3">
<a :href="getMusicbrainzUrl('recording', track.id)" class="discrete link" target="_blank" title="View on MusicBrainz"> <a :href="getMusicbrainzUrl('recording', track.id)" class="discrete link" target="_blank" :title="$t('View on MusicBrainz')">
{{ track.recording.title }} {{ track.recording.title }}
</a> </a>
</td> </td>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<div class="ui fluid search"> <div class="ui fluid search">
<div class="ui icon input"> <div class="ui icon input">
<input class="prompt" placeholder="Enter your search query..." type="text"> <input class="prompt" :placeholder="$t('Enter your search query...')" type="text">
<i class="search icon"></i> <i class="search icon"></i>
</div> </div>
<div class="results"></div> <div class="results"></div>
...@@ -32,21 +32,7 @@ export default { ...@@ -32,21 +32,7 @@ export default {
data: function () { data: function () {
return { return {
currentType: this.mbType || 'artist', currentType: this.mbType || 'artist',
currentId: this.mbId || '', currentId: this.mbId || ''
types: [
{
value: 'artist',
label: 'Artist'
},
{
value: 'release',
label: 'Album'
},
{
value: 'recording',
label: 'Track'
}
]
} }
}, },
...@@ -132,6 +118,22 @@ export default { ...@@ -132,6 +118,22 @@ export default {
}, },
searchUrl: function () { searchUrl: function () {
return config.API_URL + 'providers/musicbrainz/search/' + this.currentTypeObject.value + 's/?query={query}' return config.API_URL + 'providers/musicbrainz/search/' + this.currentTypeObject.value + 's/?query={query}'
},
types: function () {
return [
{
value: 'artist',
label: this.$t('Artist')
},
{
value: 'release',
label: this.$t('Album')
},
{
value: 'recording',
label: this.$t('Track')
}
]
} }
}, },
watch: { watch: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment