From e60833db736c7f46ea6f1fd02ec2cbcdd3fe2bbd Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Aug 2021 06:28:46 +0530 Subject: [PATCH] Translate and use the count system for counts.videos --- src/routes/Playlist.vue | 2 +- src/translations/en.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/Playlist.vue b/src/routes/Playlist.vue index 2cba7ab..75d688c 100644 --- a/src/routes/Playlist.vue +++ b/src/routes/Playlist.vue @@ -23,7 +23,7 @@ -
{{ playlist.videos }} Videos
+
{{ $tc('counts.videos', playlist.videos) }}
mdi-rss-box diff --git a/src/translations/en.json b/src/translations/en.json index 12cdf57..e972663 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -8,6 +8,9 @@ "preferences": "Preferences", "history": "Watch History" }, + "counts": { + "videos": "No videos | One Video | {count} Videos" + }, "actions": { "subscribe": "Subscribe", "unsubscribe": "Unsubscribe",