show "SOURCE" if the subtitle is a source subtitle

This commit is contained in:
Pas 2026-02-17 13:26:20 -07:00
parent 3a909eb314
commit f507cadf01
2 changed files with 6 additions and 1 deletions

View file

@ -849,6 +849,7 @@
"autoSelectChoice": "Auto select",
"autoSelectDifferentChoice": "Tap again to auto select different subtitle",
"SourceChoice": "Source Subtitles",
"source": "SOURCE",
"OpenSubtitlesChoice": "External Subtitles",
"loadingExternal": "Loading external subtitles...",
"transcriptChoice": "Transcript",

View file

@ -197,7 +197,7 @@ export function CaptionOption(props: CaptionOptionProps) {
{props.subtitleType.toUpperCase()}
</span>
)}
{props.subtitleSource && (
{props.subtitleSource ? (
<span
className={classNames(
"ml-2 px-2 py-0.5 rounded text-white text-xs font-semibold overflow-hidden text-ellipsis whitespace-nowrap",
@ -211,6 +211,10 @@ export function CaptionOption(props: CaptionOptionProps) {
>
{props.subtitleSource.toUpperCase()}
</span>
) : (
<span className="ml-2 px-2 py-0.5 rounded text-white text-xs font-semibold overflow-hidden text-ellipsis whitespace-nowrap bg-grey-500">
{t("player.menus.subtitles.source")}
</span>
)}
{props.isHearingImpaired && (
<Icon icon={Icons.EAR} className="ml-2" />