fix: always display transcription (#12325)
* feat: always display transcription * fix: unused import
This commit is contained in:
parent
744960bb1a
commit
3cbf160f2b
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue