fix: always display transcription (#12325)

* feat: always display transcription

* fix: unused import
This commit is contained in:
Charles Zablit 2022-11-29 16:50:19 +01:00 committed by GitHub
parent 744960bb1a
commit 3cbf160f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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.