From 7777f72893775fdb06458910950a05c3bbb3456b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 11 Mar 2026 20:36:51 +0200 Subject: [PATCH] chore(media): change translations prefix --- apps/client/src/translations/en/translation.json | 2 +- .../client/src/widgets/type_widgets/file/Audio.tsx | 6 +++--- .../src/widgets/type_widgets/file/MediaPlayer.tsx | 8 ++++---- .../client/src/widgets/type_widgets/file/Video.tsx | 14 +++++++------- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index abd12b6986..fdd6f9fb2d 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -1036,7 +1036,7 @@ "file_preview_not_available": "File preview is not available for this file format.", "too_big": "The preview only shows the first {{maxNumChars}} characters of the file for performance reasons. Download the file and open it externally to be able to see the entire content." }, - "video": { + "media": { "play": "Play (Space)", "pause": "Pause (Space)", "back-10s": "Back 10s (Left arrow key)", diff --git a/apps/client/src/widgets/type_widgets/file/Audio.tsx b/apps/client/src/widgets/type_widgets/file/Audio.tsx index 676997fd63..36eda0b774 100644 --- a/apps/client/src/widgets/type_widgets/file/Audio.tsx +++ b/apps/client/src/widgets/type_widgets/file/Audio.tsx @@ -27,7 +27,7 @@ export default function AudioPreview({ note }: { note: FNote }) { const onError = useCallback(() => setError(true), []); if (error) { - return ; + return ; } return ( @@ -53,9 +53,9 @@ export default function AudioPreview({ note }: { note: FNote }) {
- + - +
diff --git a/apps/client/src/widgets/type_widgets/file/MediaPlayer.tsx b/apps/client/src/widgets/type_widgets/file/MediaPlayer.tsx index 66aeffae80..edd689d98e 100644 --- a/apps/client/src/widgets/type_widgets/file/MediaPlayer.tsx +++ b/apps/client/src/widgets/type_widgets/file/MediaPlayer.tsx @@ -72,7 +72,7 @@ export function PlayPauseButton({ mediaRef, playing }: { mediaRef: RefObject ); @@ -121,7 +121,7 @@ export function VolumeControl({ mediaRef }: { mediaRef: RefObject ); @@ -211,7 +211,7 @@ export function PlaybackSpeed({ mediaRef }: { mediaRef: RefObject {speed}x } - title={t("video.playback-speed")} + title={t("media.playback-speed")} > {PLAYBACK_SPEEDS.map((rate) => (
  • diff --git a/apps/client/src/widgets/type_widgets/file/Video.tsx b/apps/client/src/widgets/type_widgets/file/Video.tsx index e9cdde4ea0..d8a2c42009 100644 --- a/apps/client/src/widgets/type_widgets/file/Video.tsx +++ b/apps/client/src/widgets/type_widgets/file/Video.tsx @@ -40,7 +40,7 @@ export default function VideoPreview({ note }: { note: FNote }) { const onKeyDown = useKeyboardShortcuts(videoRef, wrapperRef, togglePlayback, flashControls); if (error) { - return ; + return ; } return ( @@ -64,9 +64,9 @@ export default function VideoPreview({ note }: { note: FNote }) {
  • - + - +
    @@ -198,7 +198,7 @@ function RotateButton({ videoRef }: { videoRef: RefObject }) { return ( ); @@ -219,7 +219,7 @@ function ZoomToFitButton({ videoRef }: { videoRef: RefObject } ); @@ -262,7 +262,7 @@ function PictureInPictureButton({ videoRef }: { videoRef: RefObject ); @@ -291,7 +291,7 @@ function FullscreenButton({ targetRef }: { targetRef: RefObject }) return ( );