Skip to content

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

fix: always display transcription (#12325)

Charles Zablit3cbf160f2bb5
diff --git a/react/features/subtitles/middleware.ts b/react/features/subtitles/middleware.ts
index 15ec9f8edf..3365789864 100644
--- a/react/features/subtitles/middleware.ts
+++ b/react/features/subtitles/middleware.ts
@@ -1,4 +1,3 @@
-import i18next from 'i18next';
import { AnyAction } from 'redux';
import { IStore } from '../app/types';
@@ -117,7 +116,7 @@ function _endpointMessageReceived({ dispatch, getState }: IStore, next: Function
newTranscriptMessage));
} else if (json.type === JSON_TYPE_TRANSCRIPTION_RESULT
- && i18next.language === translationLanguage) {
+ && json.language.slice(0, 2) === translationLanguage) {
// Displays interim and final results without any translation if
// translations are disabled.