Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat: Hide the translation UI when asyncTranscription is used.

Boris Grozevf0452d05b97c
diff --git a/react/features/subtitles/components/web/LanguageSelector.tsx b/react/features/subtitles/components/web/LanguageSelector.tsx
index 04ceb35685..0d55a2f1bf 100644
--- a/react/features/subtitles/components/web/LanguageSelector.tsx
+++ b/react/features/subtitles/components/web/LanguageSelector.tsx
@@ -51,6 +51,13 @@ function LanguageSelector() {
state,
selectedLanguage?.replace('translation-languages:', '')
));
+ const isAsyncTranscriptionEnabled = useSelector((state: IReduxState) =>
+ state['features/base/conference'].conference?.getMetadataHandler()?.getMetadata()?.asyncTranscription);
+
+ // Hide the "Translate to" option when asyncTranscription is enabled
+ if (isAsyncTranscriptionEnabled) {
+ return null;
+ }
/**
* Maps available languages to Select component options format.