[web-src] Localize dates in dialogs/pages for Spotify tracks

This commit is contained in:
chme 2020-05-16 06:39:51 +02:00
parent 5e33b2a612
commit a36cd47f24
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
</p>
<p v-if="track.date_released">
<span class="heading">Release date</span>
<span class="title is-6">{{ track.date_released | time('L')}}</span>
<span class="title is-6">{{ track.date_released | time('L') }}</span>
</p>
<p v-else-if="track.year > 0">
<span class="heading">Year</span>

View File

@ -3,7 +3,7 @@
<div class="media-content fd-has-action is-clipped" v-on:click="open_album">
<h1 class="title is-6">{{ album.name }}</h1>
<h2 class="subtitle is-7 has-text-grey"><b>{{ album.artists[0].name }}</b></h2>
<h2 class="subtitle is-7 has-text-grey has-text-weight-normal">({{ album.album_type }}, {{ album.release_date }})</h2>
<h2 class="subtitle is-7 has-text-grey has-text-weight-normal">({{ album.album_type }}, {{ album.release_date | time('L') }})</h2>
</div>
<div class="media-right">
<slot name="actions"></slot>

View File

@ -19,7 +19,7 @@
</p>
<p>
<span class="heading">Release date</span>
<span class="title is-6">{{ album.release_date }}</span>
<span class="title is-6">{{ album.release_date | time('L') }}</span>
</p>
<p>
<span class="heading">Type</span>

View File

@ -23,7 +23,7 @@
</p>
<p>
<span class="heading">Release date</span>
<span class="title is-6">{{ album.release_date }}</span>
<span class="title is-6">{{ album.release_date | time('L') }}</span>
</p>
<p>
<span class="heading">Track / Disc</span>