Included missing locale

This commit is contained in:
Pedro Beschorner Marin 2019-06-24 13:18:46 +00:00 committed by KDSBrowne
parent e1a74bed6b
commit 25f9bca149

View File

@ -103,6 +103,10 @@ class Pad extends PureComponent {
}
handleListen() {
const {
locale,
} = this.props;
const {
listening,
} = this.state;
@ -147,7 +151,7 @@ class Pad extends PureComponent {
// Changes to the finalTranscript are shown to in the captions
if (newEntry) {
const text = finalTranscript.trimRight();
CaptionsService.appendText(text);
CaptionsService.appendText(text, locale);
finalTranscript = '';
}
};