From 739d2814fbff145436051fcb9f38469dce8e35ab Mon Sep 17 00:00:00 2001
From: Pas <74743263+Pasithea0@users.noreply.github.com>
Date: Thu, 17 Apr 2025 14:34:13 -0600
Subject: [PATCH] update captions selecting view
---
src/assets/locales/en.json | 1 +
.../player/atoms/settings/CaptionsView.tsx | 17 +++++++++++++----
.../settings/OpensubtitlesCaptionsView.tsx | 1 +
.../atoms/settings/SourceCaptionsView.tsx | 1 +
4 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json
index 8d342295..88373318 100644
--- a/src/assets/locales/en.json
+++ b/src/assets/locales/en.json
@@ -467,6 +467,7 @@
"customChoice": "Drop or upload file",
"customizeLabel": "Customize",
"offChoice": "Off",
+ "onChoice": "On",
"SourceChoice": "Source Captions",
"OpenSubtitlesChoice": "OpenSubtitles",
"settings": {
diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx
index 6a776790..ff67f422 100644
--- a/src/components/player/atoms/settings/CaptionsView.tsx
+++ b/src/components/player/atoms/settings/CaptionsView.tsx
@@ -22,6 +22,7 @@ export function CaptionOption(props: {
loading?: boolean;
onClick?: () => void;
error?: React.ReactNode;
+ flag?: boolean;
}) {
return (