mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-18 19:16:42 +03:00
Add i18n support for event navigation buttons
This commit is contained in:
parent
2e9ca27acf
commit
4a660262fc
@ -6,6 +6,10 @@
|
||||
"title": "Submit this frame to Frigate+?",
|
||||
"submit": "Submit"
|
||||
},
|
||||
"eventNavigation": {
|
||||
"previous": "Previous Event",
|
||||
"next": "Next Event"
|
||||
},
|
||||
"livePlayerRequiredIOSVersion": "iOS 17.1 or greater is required for this live stream type.",
|
||||
"streamOffline": {
|
||||
"title": "Stream Offline",
|
||||
|
||||
@ -100,6 +100,8 @@ export default function VideoControls({
|
||||
toggleFullscreen,
|
||||
containerRef,
|
||||
}: VideoControlsProps) {
|
||||
const { t } = useTranslation(["components/player"]);
|
||||
|
||||
// layout
|
||||
|
||||
const controlsContainerRef = useRef<HTMLDivElement | null>(null);
|
||||
@ -300,7 +302,7 @@ export default function VideoControls({
|
||||
<>
|
||||
<IoMdSkipBackward
|
||||
className="size-5 cursor-pointer"
|
||||
title="Previous Event"
|
||||
title={t("eventNavigation.previous")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onJumpToEvent("previous");
|
||||
@ -308,7 +310,7 @@ export default function VideoControls({
|
||||
/>
|
||||
<IoMdSkipForward
|
||||
className="size-5 cursor-pointer"
|
||||
title="Next Event"
|
||||
title={t("eventNavigation.next")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onJumpToEvent("next");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user