1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Merge pull request #274 from frost768/time-format

language based time formatting
This commit is contained in:
James Hawkins 2023-05-10 10:46:32 +01:00 committed by GitHub
commit 55bfa2be9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 11 deletions

View file

@ -58,7 +58,7 @@
"backToHomeShort": "Zpět",
"seasonAndEpisode": "S{{season}} E{{episode}}",
"timeLeft": "Zbývá {{timeLeft}}",
"finishAt": "Končí ve {{timeFinished}}",
"finishAt": "Končí ve {{timeFinished, datetime}}",
"buttons": {
"episodes": "Epizody",
"source": "Zdroj",

View file

@ -58,7 +58,7 @@
"backToHomeShort": "Rückmeldung",
"seasonAndEpisode": "S{{season}} E{{episode}}",
"timeLeft": "{{timeLeft}} bleibt",
"finishAt": "Ende um {{timeFinished}}",
"finishAt": "Ende um {{timeFinished, datetime}}",
"buttons": {
"episodes": "Folgen",
"source": "Quelle",

View file

@ -58,7 +58,7 @@
"backToHomeShort": "Back",
"seasonAndEpisode": "S{{season}} E{{episode}}",
"timeLeft": "{{timeLeft}} left",
"finishAt": "Finish at {{timeFinished}}",
"finishAt": "Finish at {{timeFinished, datetime}}",
"buttons": {
"episodes": "Episodes",
"source": "Source",

View file

@ -58,7 +58,7 @@
"backToHomeShort": "Retour",
"seasonAndEpisode": "S{{season}} E{{episode}}",
"timeLeft": "{{timeLeft}} restant",
"finishAt": "Terminer à {{timeFinished}}",
"finishAt": "Terminer à {{timeFinished, datetime}}",
"buttons": {
"episodes": "Épisodes",
"source": "Source",

View file

@ -58,7 +58,7 @@
"backToHomeShort": "Terug",
"seasonAndEpisode": "S{{season}} A{{episode}}",
"timeLeft": "Nog {{timeLeft}}",
"finishAt": "Afgelopen om {{timeFinished}}",
"finishAt": "Afgelopen om {{timeFinished, datetime}}",
"buttons": {
"episodes": "Afleveringen",
"source": "Bron",

View file

@ -58,7 +58,7 @@
"backToHomeShort": "返回",
"seasonAndEpisode": "第{{season}}季 第{{episode}}集",
"timeLeft": "还剩余 {{timeLeft}}",
"finishAt": "在 {{timeFinished}} 结束",
"finishAt": "在 {{timeFinished, datetime}} 结束",
"buttons": {
"episodes": "分集",
"source": "视频源",

View file

@ -63,13 +63,12 @@ export function TimeAction(props: Props) {
new Date().getTime() +
((videoTime.duration - videoTime.time) * 1000) /
mediaPlaying.playbackSpeed
).toLocaleTimeString("en-US", {
hour: "numeric",
minute: "numeric",
hour12: true,
});
);
const formattedTimeFinished = ` - ${t("videoPlayer.finishAt", {
timeFinished,
formatParams: {
timeFinished: { hour: "numeric", minute: "numeric" },
},
})}`;
let formattedTime: string;