mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 09:31:50 +01:00
Translations
This commit is contained in:
parent
84b8a67cea
commit
c330112dbc
@ -57,6 +57,8 @@
|
|||||||
"backToHome": "Back to home",
|
"backToHome": "Back to home",
|
||||||
"backToHomeShort": "Back",
|
"backToHomeShort": "Back",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
|
"timeLeft": "{{timeLeft}} left",
|
||||||
|
"finishAt": "Finish at {{timeFinished}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Episodes",
|
"episodes": "Episodes",
|
||||||
"source": "Source",
|
"source": "Source",
|
||||||
|
@ -39,13 +39,16 @@
|
|||||||
"backToHome": "Retour à la page d'accueil",
|
"backToHome": "Retour à la page d'accueil",
|
||||||
"backToHomeShort": "Retour",
|
"backToHomeShort": "Retour",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
|
"timeLeft": "{{timeLeft}} restant",
|
||||||
|
"finishAt": "Terminer à {{timeFinished}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Épisodes",
|
"episodes": "Épisodes",
|
||||||
"source": "Source",
|
"source": "Source",
|
||||||
"captions": "Sous-titres",
|
"captions": "Sous-titres",
|
||||||
"download": "Télécharger",
|
"download": "Télécharger",
|
||||||
"settings": "Paramètres",
|
"settings": "Paramètres",
|
||||||
"pictureInPicture": "Image dans l'image"
|
"pictureInPicture": "Image dans l'image",
|
||||||
|
"playbackSpeed": "Vitesse"
|
||||||
},
|
},
|
||||||
"popouts": {
|
"popouts": {
|
||||||
"sources": "Sources",
|
"sources": "Sources",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { useVideoPlayerDescriptor } from "@/video/state/hooks";
|
import { useVideoPlayerDescriptor } from "@/video/state/hooks";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
import { useMediaPlaying } from "@/video/state/logic/mediaplaying";
|
import { useMediaPlaying } from "@/video/state/logic/mediaplaying";
|
||||||
import { useProgress } from "@/video/state/logic/progress";
|
import { useProgress } from "@/video/state/logic/progress";
|
||||||
import { useInterface } from "@/video/state/logic/interface";
|
import { useInterface } from "@/video/state/logic/interface";
|
||||||
@ -39,6 +40,7 @@ export function TimeAction(props: Props) {
|
|||||||
const videoTime = useProgress(descriptor);
|
const videoTime = useProgress(descriptor);
|
||||||
const mediaPlaying = useMediaPlaying(descriptor);
|
const mediaPlaying = useMediaPlaying(descriptor);
|
||||||
const { timeFormat, setTimeFormat } = useInterface(descriptor);
|
const { timeFormat, setTimeFormat } = useInterface(descriptor);
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const hasHours = durationExceedsHour(videoTime.duration);
|
const hasHours = durationExceedsHour(videoTime.duration);
|
||||||
const time = formatSeconds(
|
const time = formatSeconds(
|
||||||
@ -80,10 +82,14 @@ export function TimeAction(props: Props) {
|
|||||||
{/* {time} {props.noDuration ? "" : `/ ${duration}`} */}
|
{/* {time} {props.noDuration ? "" : `/ ${duration}`} */}
|
||||||
{timeFormat === 0
|
{timeFormat === 0
|
||||||
? `${time} ${props.noDuration ? "" : `/ ${duration}`}`
|
? `${time} ${props.noDuration ? "" : `/ ${duration}`}`
|
||||||
: `${timeLeft} left${
|
: `${t("videoPlayer.timeLeft", {
|
||||||
|
timeLeft,
|
||||||
|
})}${
|
||||||
videoTime.time === videoTime.duration
|
videoTime.time === videoTime.duration
|
||||||
? ""
|
? ""
|
||||||
: ` - finish at ${timeFinished}`
|
: ` - ${t("videoPlayer.finishAt", {
|
||||||
|
timeFinished,
|
||||||
|
})}`
|
||||||
} `}
|
} `}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user