Added strings for friendlyTypes in index.js

This commit is contained in:
kyw504100 2022-02-03 01:06:38 +08:00
parent 47c43759b6
commit 266dacae8e
No known key found for this signature in database
GPG key ID: 9116E2159A0521FD
2 changed files with 21 additions and 13 deletions

View file

@ -134,6 +134,14 @@
"term.addedpreset": "Added Preset", "term.addedpreset": "Added Preset",
"term.deletepreset.warn": "Are you sure you want to delete this preset?", "term.deletepreset.warn": "Are you sure you want to delete this preset?",
"term.deletedpreset": "Removed preset", "term.deletedpreset": "Removed preset",
"term.musicVideos": "Music Videos", // Search page friendlyTypes
"term.stations": "Stations",
"term.curators": "Curators",
"term.appleCurators": "Apple Curators",
"term.radioShows": "Radio Shows",
"term.recordLabels": "Record Labels",
"term.videoExtras": "Video Extras",
"term.top": "Top",
// Home // Home
"home.title": "Home", "home.title": "Home",

View file

@ -2784,43 +2784,43 @@ const app = new Vue({
// use switch statement to return friendly name for media types "songs,artists,albums,playlists,music-videos,stations,apple-curators,curators" // use switch statement to return friendly name for media types "songs,artists,albums,playlists,music-videos,stations,apple-curators,curators"
switch (type) { switch (type) {
case "song": case "song":
return "Songs" return app.getLz('term.songs')
break; break;
case "artist": case "artist":
return "Artists" return app.getLz('term.artists')
break; break;
case "album": case "album":
return "Albums" return app.getLz('term.albums')
break; break;
case "playlist": case "playlist":
return "Playlists" return app.getLz('term.playlists')
break; break;
case "music_video": case "music_video":
return "Music Videos" return app.getLz('term.musicVideos')
break; break;
case "station": case "station":
return "Stations" return app.getLz('term.stations')
break; break;
case "apple-curator": case "apple-curator":
return "Apple Curators" return app.getLz('term.appleCurators')
break; break;
case "radio_show": case "radio_show":
return "Radio Shows" return app.getLz('term.radioShows')
break; break;
case "record_label": case "record_label":
return "Record Labels" return app.getLz('term.recordLabels')
break; break;
case "radio_episode": case "radio_episode":
return "Episodes" return app.getLz('podcast.episodes')
break; break;
case "video_extra": case "video_extra":
return "Video Extras" return app.getLz('term.videoExtras')
break; break;
case "curator": case "curator":
return "Curators" return app.getLz('term.curators')
break; break;
case "top": case "top":
return "Top" return app.getLz('term.top')
break; break;
default: default:
return type return type