From a36cd47f24bc4516ea666bf0d89d0ea0f81aa9e9 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 16 May 2020 06:39:51 +0200 Subject: [PATCH] [web-src] Localize dates in dialogs/pages for Spotify tracks --- web-src/src/components/ModalDialogTrack.vue | 2 +- web-src/src/components/SpotifyListItemAlbum.vue | 2 +- web-src/src/components/SpotifyModalDialogAlbum.vue | 2 +- web-src/src/components/SpotifyModalDialogTrack.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web-src/src/components/ModalDialogTrack.vue b/web-src/src/components/ModalDialogTrack.vue index 6b4dde60..333a0e7d 100644 --- a/web-src/src/components/ModalDialogTrack.vue +++ b/web-src/src/components/ModalDialogTrack.vue @@ -31,7 +31,7 @@

Release date - {{ track.date_released | time('L')}} + {{ track.date_released | time('L') }}

Year diff --git a/web-src/src/components/SpotifyListItemAlbum.vue b/web-src/src/components/SpotifyListItemAlbum.vue index b2bb2951..a6d2729d 100644 --- a/web-src/src/components/SpotifyListItemAlbum.vue +++ b/web-src/src/components/SpotifyListItemAlbum.vue @@ -3,7 +3,7 @@

{{ album.name }}

{{ album.artists[0].name }}

-

({{ album.album_type }}, {{ album.release_date }})

+

({{ album.album_type }}, {{ album.release_date | time('L') }})

diff --git a/web-src/src/components/SpotifyModalDialogAlbum.vue b/web-src/src/components/SpotifyModalDialogAlbum.vue index 062feda1..2ddb86c0 100644 --- a/web-src/src/components/SpotifyModalDialogAlbum.vue +++ b/web-src/src/components/SpotifyModalDialogAlbum.vue @@ -19,7 +19,7 @@

Release date - {{ album.release_date }} + {{ album.release_date | time('L') }}

Type diff --git a/web-src/src/components/SpotifyModalDialogTrack.vue b/web-src/src/components/SpotifyModalDialogTrack.vue index 51891c9d..3efec1e1 100644 --- a/web-src/src/components/SpotifyModalDialogTrack.vue +++ b/web-src/src/components/SpotifyModalDialogTrack.vue @@ -23,7 +23,7 @@

Release date - {{ album.release_date }} + {{ album.release_date | time('L') }}

Track / Disc