diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index f88f67462..17cc9c93d 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -376,7 +376,9 @@ }, "title": "Subtitles", "unknownLanguage": "Unknown", - "dropSubtitleFile": "Drop subtitle file here! >_<" + "dropSubtitleFile": "Drop subtitle file here! >_<", + "scrapeButton": "Scrape subtitles", + "empty": "There are no provided subtitles for this." } }, "metadata": { diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx index eae8f8a69..709ad067d 100644 --- a/src/components/player/atoms/settings/CaptionsView.tsx +++ b/src/components/player/atoms/settings/CaptionsView.tsx @@ -253,7 +253,22 @@ export function CaptionsView({ id }: { id: string }) { {t("player.menus.subtitles.offChoice")} - {content} + {content.length === 0 ? ( +
+
+ {t("player.menus.subtitles.empty")} + +
+
+ ) : ( + content + )}