Fix second language switching not working

This commit is contained in:
sienori 2019-08-22 14:23:25 +09:00
parent dcce358450
commit 2ea456aa82

View file

@ -64,7 +64,7 @@ const formatResult = result => {
}
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("");
if (result.response.dict) {
resultData.candidateText = result.response.dict