开发工具和手机翻译结果一样,我使用过程中发现多处翻译涉黄,于是测试内容,发现翻译内容1是正常的,内容2有涉黄,比较发现内容1和内容2差异为最后的句号,希望你们排查
翻译内容1:“Don’t worry, the fact that you came so far means the Captain has agreed. I’ve always been a little afraid of him, even though he is amiable, a fatherly figure. I don’t know why but i’m Still afraid.” Rozanne spoke as though there was a piece of sweet in her throat
翻译内容2:// let content = '“Don’t worry, the fact that you came so far means the Captain has agreed. I’ve always been a little afraid of him, even though he is amiable, a fatherly figure. I don’t know why but I’m still afraid.” Rozanne spoke as though there was a piece of sweet in her throat.'
全部代码
let content = '“Don’t worry, the fact that you came so far means the Captain has agreed. I’ve always been a little afraid of him, even though he is amiable, a fatherly figure. I don’t know why but i’m Still afraid.” Rozanne spoke as though there was a piece of sweet in her throat'
// let content = '“Don’t worry, the fact that you came so far means the Captain has agreed. I’ve always been a little afraid of him, even though he is amiable, a fatherly figure. I don’t know why but I’m still afraid.” Rozanne spoke as though there was a piece of sweet in her throat.'
plugin.translate({
lfrom:"en_US",
lto:"zh_CN",
content: content,
success: function(res) {
console.log("result", res)
},
fail: function(res) {
wx.showModal({
title: '温馨提示',
content: '翻译失败',
showCancel: false
})
console.log("翻译失败",res)
}
})
