refactor: extract some hardcoded strings to translation file

This commit is contained in:
4gray committed 2023-02-24 12:59:22 +01:00
1 parent fe96eac8ae
commit fa8ea4015c
3 files changed
+7 -3

No files matched your search

@@ -17,8 +17,10 @@
<div class="channels-count">
{{
sidebarView === 'CHANNELS'
? channels.length + ' channels'
: 'all available playlists'
? channels.length +
' ' +
('HOME.PLAYLISTS.CHANNELS' | translate)
: ('HOME.PLAYLISTS.MY_PLAYLISTS_SUBTITLE' | translate)
}}
</div>
</div>
@@ -22,6 +22,7 @@
.channels-count {
font-size: 0.8em;
color: #ccc;
text-transform: lowercase;
}
}
}
+2 -1
View File
@@ -42,7 +42,8 @@
"REFRESH": "Refresh playlist",
"GLOBAL_FAVORITES": "Global favorites",
"GLOBAL_FAVORITES_DESCRIPTION": "Auto-generated playlist with aggregated favorites from all playlists",
"MY_PLAYLISTS": "My playlists"
"MY_PLAYLISTS": "My playlists",
"MY_PLAYLISTS_SUBTITLE": "all available playlists"
},
"FILE_UPLOAD": {
"DRAG_DROP": "Drag & drop files here",