Skip to content

Commit c4de1de

Browse files
committed
fix: translate track subtypes
1 parent d8edb25 commit c4de1de

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

components/track/TrackItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const fields = computed(() => {
7777
7878
const third = props.isTrackTypeKnown
7979
? props.track.meta.album
80-
: props.track.subtype;
80+
: t(`track.types.${props.track.subtype}`);
8181
return {
8282
title: filtered[0],
8383
subtitle: filtered.slice(1).join(" - "),

locales/en.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@
170170
},
171171
"playback": {
172172
"normal": "Normal"
173+
},
174+
"types": {
175+
"song": "Song",
176+
"singsong": "Congregational Singing",
177+
"speech": "Speech",
178+
"audiobook": "Audiobook",
179+
"podcast": "Podcast",
180+
"exegesis": "Exegesis"
173181
}
174182
},
175183
"home": {

0 commit comments

Comments
 (0)