有人曾经使用过 isReliable 和 Google Translate API 吗?它总是返回“未定义”值。
google.language.translate('hello','','es',function(result){
alert(result.isReliable); // prints undefined
alert(result.translation); // prints "hola"
});
最佳答案
isReliable - A boolean representing whether or not the detection interval believes the language code is reliable for the given text.
它仅适用于语言检测(不适用于翻译)。
你可以看一个例子here .
关于javascript - Google Translate API - isReliable 不返回任何内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1386993/