fix(i18n): make two hardcoded titles translatable (#1627)

This commit is contained in:
Gauvain
2026-06-01 09:46:27 +02:00
committed by GitHub
parent 1d79b513f3
commit 21fb056586
3 changed files with 7 additions and 3 deletions

View File

@@ -1,11 +1,13 @@
import { useTranslation } from "react-i18next";
import { MpvPlayerViewProps } from "./MpvPlayer.types";
export default function MpvPlayerView(props: MpvPlayerViewProps) {
const url = props.source?.url ?? "";
const { t } = useTranslation();
return (
<div>
<iframe
title='MPV Player'
title={t("player.mpv_player_title")}
style={{ flex: 1 }}
src={url}
onLoad={() => props.onLoad?.({ nativeEvent: { url } })}