Fix second language switching not working
This commit is contained in:
parent
dcce358450
commit
2ea456aa82
|
@ -64,7 +64,7 @@ const formatResult = result => {
|
||||||
}
|
}
|
||||||
|
|
||||||
resultData.sourceLanguage = result.response.src;
|
resultData.sourceLanguage = result.response.src;
|
||||||
resultData.percentage = result.response.confidence;
|
resultData.percentage = result.response.ld_result.srclangs_confidences[0];
|
||||||
resultData.resultText = result.response.sentences.map(sentence => sentence.trans).join("");
|
resultData.resultText = result.response.sentences.map(sentence => sentence.trans).join("");
|
||||||
if (result.response.dict) {
|
if (result.response.dict) {
|
||||||
resultData.candidateText = result.response.dict
|
resultData.candidateText = result.response.dict
|
||||||
|
|
Loading…
Reference in a new issue