Open source video conferencing app powered by LiveKit. Built with Django and React.
🌐(frontend) prepare translation keys for expanded recording types
lebaudantoine69381a6c4b67
diff --git a/src/frontend/src/features/notifications/components/ToastTranscript.tsx b/src/frontend/src/features/notifications/components/ToastTranscript.tsxindex 639db009..93de32db 100644--- a/src/frontend/src/features/notifications/components/ToastTranscript.tsx+++ b/src/frontend/src/features/notifications/components/ToastTranscript.tsx@@ -7,13 +7,14 @@ import { useTranslation } from 'react-i18next'import { NotificationType } from '../NotificationType'export function ToastTranscript({ state, ...props }: ToastProps) {- const { t } = useTranslation('notifications')+ const { t } = useTranslation('notifications', { keyPrefix: 'transcript' })const ref = useRef(null)const { toastProps, contentProps } = useToast(props, state, ref)const participant = props.toast.content.participantconst type = props.toast.content.type- const key = `recording${type == NotificationType.TranscriptionStarted ? 'Started' : 'Stopped'}`+ const key =+ type == NotificationType.TranscriptionStarted ? 'started' : 'stopped'return (<StyledToastContainer {...toastProps} ref={ref}>diff --git a/src/frontend/src/features/rooms/livekit/components/TranscriptStateToast.tsx b/src/frontend/src/features/rooms/livekit/components/TranscriptStateToast.tsxindex 3c1b94d8..23784f8a 100644--- a/src/frontend/src/features/rooms/livekit/components/TranscriptStateToast.tsx+++ b/src/frontend/src/features/rooms/livekit/components/TranscriptStateToast.tsx@@ -11,7 +11,9 @@ import { NotificationType } from '@/features/notifications/NotificationType'import { TranscriptionStatus, transcriptionStore } from '@/stores/transcription'export const TranscriptStateToast = () => {- const { t } = useTranslation('rooms', { keyPrefix: 'recording.transcript' })+ const { t } = useTranslation('rooms', {+ keyPrefix: 'recordingBadge.transcript',+ })const room = useRoomContext()const transcriptionSnap = useSnapshot(transcriptionStore)diff --git a/src/frontend/src/locales/de/notifications.json b/src/frontend/src/locales/de/notifications.jsonindex bbef20f7..1dd545ba 100644--- a/src/frontend/src/locales/de/notifications.json+++ b/src/frontend/src/locales/de/notifications.json@@ -22,6 +22,8 @@"open": "","accept": ""},- "recordingStarted": "",- "recordingStopped": ""+ "transcript": {+ "started": "",+ "stopped": ""+ }}diff --git a/src/frontend/src/locales/de/rooms.json b/src/frontend/src/locales/de/rooms.jsonindex 61bc6701..aecede86 100644--- a/src/frontend/src/locales/de/rooms.json+++ b/src/frontend/src/locales/de/rooms.json@@ -292,7 +292,7 @@}}},- "recording": {+ "recordingBadge": {"transcript": {"started": "","starting": "",diff --git a/src/frontend/src/locales/en/notifications.json b/src/frontend/src/locales/en/notifications.jsonindex 0d63f4b0..ffe8876f 100644--- a/src/frontend/src/locales/en/notifications.json+++ b/src/frontend/src/locales/en/notifications.json@@ -22,6 +22,8 @@"open": "Open","accept": "Accept"},- "recordingStarted": "{{name}} started the meeting transcription.",- "recordingStopped": "{{name}} stopped the meeting transcription."+ "transcript": {+ "started": "{{name}} started the meeting transcription.",+ "stopped": "{{name}} stopped the meeting transcription."+ }}diff --git a/src/frontend/src/locales/en/rooms.json b/src/frontend/src/locales/en/rooms.jsonindex 07cb7820..9d711d41 100644--- a/src/frontend/src/locales/en/rooms.json+++ b/src/frontend/src/locales/en/rooms.json@@ -291,7 +291,7 @@}}},- "recording": {+ "recordingBadge": {"transcript": {"started": "Transcribing","starting": "Transcription starting",diff --git a/src/frontend/src/locales/fr/notifications.json b/src/frontend/src/locales/fr/notifications.jsonindex d4cda69d..d9bd30c6 100644--- a/src/frontend/src/locales/fr/notifications.json+++ b/src/frontend/src/locales/fr/notifications.json@@ -22,6 +22,8 @@"open": "Afficher","accept": "Accepter"},- "recordingStarted": "{{name}} a démarré la transcription de la réunion.",- "recordingStopped": "{{name}} a arrêté la transcription de la réunion."+ "transcript": {+ "started": "{{name}} a démarré la transcription de la réunion.",+ "stopped": "{{name}} a arrêté la transcription de la réunion."+ }}diff --git a/src/frontend/src/locales/fr/rooms.json b/src/frontend/src/locales/fr/rooms.jsonindex a502924c..ad474d00 100644--- a/src/frontend/src/locales/fr/rooms.json+++ b/src/frontend/src/locales/fr/rooms.json@@ -291,7 +291,7 @@}}},- "recording": {+ "recordingBadge": {"transcript": {"started": "Transcription en cours","starting": "Démarrage de la transcription",diff --git a/src/frontend/src/locales/nl/notifications.json b/src/frontend/src/locales/nl/notifications.jsonindex d19d3488..cdca57b3 100644--- a/src/frontend/src/locales/nl/notifications.json+++ b/src/frontend/src/locales/nl/notifications.json@@ -22,6 +22,8 @@"open": "Openen","accept": "Accepteren"},- "recordingStarted": "{{name}} is de transcriptie van de vergadering gestart.",- "recordingStopped": "{{name}} heeft de transcriptie van de vergadering gestopt."+ "transcript": {+ "started": "{{name}} is de transcriptie van de vergadering gestart.",+ "stopped": "{{name}} heeft de transcriptie van de vergadering gestopt."+ }}diff --git a/src/frontend/src/locales/nl/rooms.json b/src/frontend/src/locales/nl/rooms.jsonindex 7b6911b9..4d7791cd 100644--- a/src/frontend/src/locales/nl/rooms.json+++ b/src/frontend/src/locales/nl/rooms.json@@ -291,7 +291,7 @@}}},- "recording": {+ "recordingBadge": {"transcript": {"started": "Transcriptie bezig","starting": "Transcriptie begint",