From 044fab637bde01842e834c6b2b9f34c34104bb51 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 14 Apr 2024 00:01:45 +0200 Subject: [PATCH] translate: player, media, logging --- components/Control.vue | 21 ++++++++--------- lang/de-DE.js | 51 ++++++++++++++++++++++++++++++++++++++++++ lang/en-US.js | 51 ++++++++++++++++++++++++++++++++++++++++++ pages/logging.vue | 6 +++-- pages/media.vue | 43 ++++++++++++++++++----------------- pages/player.vue | 49 +++++++++++++++++++++------------------- plugins/dayjs.ts | 10 ++++----- stores/media.ts | 9 ++++---- stores/playlist.ts | 2 +- 9 files changed, 176 insertions(+), 66 deletions(-) diff --git a/components/Control.vue b/components/Control.vue index 8ac14407..e4d8867c 100644 --- a/components/Control.vue +++ b/components/Control.vue @@ -50,8 +50,8 @@
-
- Live Ingest +
+ {{ $t('control.ingest') }}
- Duration: {{ secToHMS(playlistStore.currentClipDuration) }} | - In: {{ secToHMS(playlistStore.currentClipIn) }} | Out: + {{ $t('player.duration') }}: {{ secToHMS(playlistStore.currentClipDuration) }} | + {{ $t('player.in') }}: {{ secToHMS(playlistStore.currentClipIn) }} | {{ $t('player.out') }}: {{ secToHMS(playlistStore.currentClipOut) }}
@@ -83,7 +83,7 @@
@@ -24,6 +25,7 @@ import { storeToRefs } from 'pinia' const colorMode = useColorMode() +const { locale } = useI18n() useHead({ title: 'Logging | ffplayout', @@ -47,7 +49,7 @@ watch([listDate, configID], () => { }) const calendarFormat = (date: Date) => { - return $dayjs(date).format('dddd DD. MMM YYYY') + return $dayjs(date).locale(locale.value).format('dddd LL') } async function getLog() { diff --git a/pages/media.vue b/pages/media.vue index 37e03fc2..76893b24 100644 --- a/pages/media.vue +++ b/pages/media.vue @@ -158,10 +158,10 @@
- -
@@ -170,37 +170,37 @@ - +
- + - + - +
- Current: + {{ $t('media.current') }}:
@@ -237,6 +237,7 @@