mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-15 06:59:10 +01:00
Merge branch 'dev' into subtitle-file-type-control
This commit is contained in:
commit
b04209d9b3
@ -58,7 +58,7 @@
|
|||||||
"backToHomeShort": "Zpět",
|
"backToHomeShort": "Zpět",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
"timeLeft": "Zbývá {{timeLeft}}",
|
"timeLeft": "Zbývá {{timeLeft}}",
|
||||||
"finishAt": "Končí ve {{timeFinished}}",
|
"finishAt": "Končí ve {{timeFinished, datetime}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Epizody",
|
"episodes": "Epizody",
|
||||||
"source": "Zdroj",
|
"source": "Zdroj",
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
"backToHomeShort": "Rückmeldung",
|
"backToHomeShort": "Rückmeldung",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
"timeLeft": "{{timeLeft}} bleibt",
|
"timeLeft": "{{timeLeft}} bleibt",
|
||||||
"finishAt": "Ende um {{timeFinished}}",
|
"finishAt": "Ende um {{timeFinished, datetime}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Folgen",
|
"episodes": "Folgen",
|
||||||
"source": "Quelle",
|
"source": "Quelle",
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
"backToHomeShort": "Back",
|
"backToHomeShort": "Back",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
"timeLeft": "{{timeLeft}} left",
|
"timeLeft": "{{timeLeft}} left",
|
||||||
"finishAt": "Finish at {{timeFinished}}",
|
"finishAt": "Finish at {{timeFinished, datetime}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Episodes",
|
"episodes": "Episodes",
|
||||||
"source": "Source",
|
"source": "Source",
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
"backToHomeShort": "Retour",
|
"backToHomeShort": "Retour",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
"timeLeft": "{{timeLeft}} restant",
|
"timeLeft": "{{timeLeft}} restant",
|
||||||
"finishAt": "Terminer à {{timeFinished}}",
|
"finishAt": "Terminer à {{timeFinished, datetime}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Épisodes",
|
"episodes": "Épisodes",
|
||||||
"source": "Source",
|
"source": "Source",
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
"backToHomeShort": "Terug",
|
"backToHomeShort": "Terug",
|
||||||
"seasonAndEpisode": "S{{season}} A{{episode}}",
|
"seasonAndEpisode": "S{{season}} A{{episode}}",
|
||||||
"timeLeft": "Nog {{timeLeft}}",
|
"timeLeft": "Nog {{timeLeft}}",
|
||||||
"finishAt": "Afgelopen om {{timeFinished}}",
|
"finishAt": "Afgelopen om {{timeFinished, datetime}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Afleveringen",
|
"episodes": "Afleveringen",
|
||||||
"source": "Bron",
|
"source": "Bron",
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
"backToHomeShort": "返回",
|
"backToHomeShort": "返回",
|
||||||
"seasonAndEpisode": "第{{season}}季 第{{episode}}集",
|
"seasonAndEpisode": "第{{season}}季 第{{episode}}集",
|
||||||
"timeLeft": "还剩余 {{timeLeft}}",
|
"timeLeft": "还剩余 {{timeLeft}}",
|
||||||
"finishAt": "在 {{timeFinished}} 结束",
|
"finishAt": "在 {{timeFinished, datetime}} 结束",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "分集",
|
"episodes": "分集",
|
||||||
"source": "视频源",
|
"source": "视频源",
|
||||||
|
@ -55,20 +55,20 @@ export function TimeAction(props: Props) {
|
|||||||
hasHours
|
hasHours
|
||||||
);
|
);
|
||||||
const duration = formatSeconds(videoTime.duration, hasHours);
|
const duration = formatSeconds(videoTime.duration, hasHours);
|
||||||
const timeLeft = formatSeconds(
|
const remaining = formatSeconds(
|
||||||
(videoTime.duration - videoTime.time) / mediaPlaying.playbackSpeed,
|
(videoTime.duration - videoTime.time) / mediaPlaying.playbackSpeed,
|
||||||
hasHours
|
hasHours
|
||||||
);
|
);
|
||||||
const timeFinished = new Date(
|
const timeFinished = new Date(
|
||||||
new Date().getTime() +
|
new Date().getTime() +
|
||||||
(videoTime.duration * 1000) / mediaPlaying.playbackSpeed
|
((videoTime.duration - videoTime.time) * 1000) /
|
||||||
).toLocaleTimeString("en-US", {
|
mediaPlaying.playbackSpeed
|
||||||
hour: "numeric",
|
);
|
||||||
minute: "numeric",
|
|
||||||
hour12: true,
|
|
||||||
});
|
|
||||||
const formattedTimeFinished = ` - ${t("videoPlayer.finishAt", {
|
const formattedTimeFinished = ` - ${t("videoPlayer.finishAt", {
|
||||||
timeFinished,
|
timeFinished,
|
||||||
|
formatParams: {
|
||||||
|
timeFinished: { hour: "numeric", minute: "numeric" },
|
||||||
|
},
|
||||||
})}`;
|
})}`;
|
||||||
|
|
||||||
let formattedTime: string;
|
let formattedTime: string;
|
||||||
@ -77,10 +77,10 @@ export function TimeAction(props: Props) {
|
|||||||
formattedTime = `${currentTime} ${props.noDuration ? "" : `/ ${duration}`}`;
|
formattedTime = `${currentTime} ${props.noDuration ? "" : `/ ${duration}`}`;
|
||||||
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && !isMobile) {
|
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && !isMobile) {
|
||||||
formattedTime = `${t("videoPlayer.timeLeft", {
|
formattedTime = `${t("videoPlayer.timeLeft", {
|
||||||
timeLeft,
|
timeLeft: remaining,
|
||||||
})}${videoTime.time === videoTime.duration ? "" : formattedTimeFinished} `;
|
})}${videoTime.time === videoTime.duration ? "" : formattedTimeFinished} `;
|
||||||
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && isMobile) {
|
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && isMobile) {
|
||||||
formattedTime = `-${timeLeft}`;
|
formattedTime = `-${remaining}`;
|
||||||
} else {
|
} else {
|
||||||
formattedTime = "";
|
formattedTime = "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user