From f1bad0257da3d52597de8178c1b1048079f0ea45 Mon Sep 17 00:00:00 2001 From: Lucas Fialho Zawacki Date: Wed, 10 Apr 2024 13:49:15 -0300 Subject: [PATCH] feat(transcription): Add translation strings for ca-ES and documentation links --- .../imports/ui/components/audio/captions/button/component.jsx | 4 ++++ .../imports/ui/components/audio/captions/select/component.jsx | 4 ++++ bigbluebutton-html5/private/config/settings.yml | 4 ++++ bigbluebutton-html5/public/locales/en.json | 3 ++- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/audio/captions/button/component.jsx b/bigbluebutton-html5/imports/ui/components/audio/captions/button/component.jsx index beff71abe2..55f39288c2 100644 --- a/bigbluebutton-html5/imports/ui/components/audio/captions/button/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/audio/captions/button/component.jsx @@ -54,6 +54,10 @@ const intlMessages = defineMessages({ id: 'app.audio.captions.select.es-ES', description: 'Audio speech recognition spanish language', }, + 'ca-ES': { + id: 'app.audio.captions.select.ca-ES', + description: 'Audio speech recognition catalan language', + }, 'fr-FR': { id: 'app.audio.captions.select.fr-FR', description: 'Audio speech recognition french language', diff --git a/bigbluebutton-html5/imports/ui/components/audio/captions/select/component.jsx b/bigbluebutton-html5/imports/ui/components/audio/captions/select/component.jsx index 0ac175f3de..43bcb8e07a 100644 --- a/bigbluebutton-html5/imports/ui/components/audio/captions/select/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/audio/captions/select/component.jsx @@ -20,6 +20,10 @@ const intlMessages = defineMessages({ id: 'app.audio.captions.speech.unsupported', description: 'Audio speech recognition unsupported', }, + 'ca-ES': { + id: 'app.audio.captions.select.ca-ES', + description: 'Audio speech recognition catalan language', + }, 'de-DE': { id: 'app.audio.captions.select.de-DE', description: 'Audio speech recognition german language', diff --git a/bigbluebutton-html5/private/config/settings.yml b/bigbluebutton-html5/private/config/settings.yml index b0cfe66ec3..abd47dfbc2 100755 --- a/bigbluebutton-html5/private/config/settings.yml +++ b/bigbluebutton-html5/private/config/settings.yml @@ -95,7 +95,11 @@ public: # provider: [webspeech, vosk, gladia] provider: webspeech language: + # Available languages will depend on the transcription service + # Google: https://cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages?hl=pt-br + # Gladia: https://docs-v1.gladia.io/reference/supported-languages available: + # - ca-ES # - de-DE - en-US - es-ES diff --git a/bigbluebutton-html5/public/locales/en.json b/bigbluebutton-html5/public/locales/en.json index db7c8b94e2..54ef8aea68 100755 --- a/bigbluebutton-html5/public/locales/en.json +++ b/bigbluebutton-html5/public/locales/en.json @@ -527,7 +527,6 @@ "app.submenu.application.localeDropdown.az": "Azerbaijani", "app.submenu.application.localeDropdown.bg-BG": "Bulgarian", "app.submenu.application.localeDropdown.bn": "Bengali", - "app.submenu.application.localeDropdown.ca": "Catalan", "app.submenu.application.localeDropdown.cs-CZ": "Czech", "app.submenu.application.localeDropdown.da": "Danish", "app.submenu.application.localeDropdown.de": "German", @@ -539,6 +538,7 @@ "app.submenu.application.localeDropdown.es-419": "Spanish (Latin America)", "app.submenu.application.localeDropdown.es-ES": "Spanish (Spain)", "app.submenu.application.localeDropdown.es-MX": "Spanish (Mexico)", + "app.submenu.application.localeDropdown.ca-ES": "Catalan (Spain)", "app.submenu.application.localeDropdown.et": "Estonian", "app.submenu.application.localeDropdown.eu": "Basque", "app.submenu.application.localeDropdown.fa-IR": "Persian", @@ -790,6 +790,7 @@ "app.audio.captions.speech.disabled": "Disabled", "app.audio.captions.speech.auto": "Auto Detect", "app.audio.captions.speech.unsupported": "Your browser doesn't support speech recognition. Your audio won't be transcribed", + "app.audio.captions.select.ca-ES": "Catalan", "app.audio.captions.select.de-DE": "German", "app.audio.captions.select.en-US": "English", "app.audio.captions.select.es-ES": "Spanish",