标签: javascript google-translate google-translation-api
有人曾使用Google Translate API isReliable 吗?它总是返回“未定义”值。
google.language.translate('hello','','es',function(result){ alert(result.isReliable); // prints undefined alert(result.translation); // prints "hola" });
资源: Google Translate API - Result objects
答案 0 :(得分:1)
isReliable - 表示是否为的布尔值 检测间隔认为语言代码是可靠的 给出文字。
它仅适用于语言检测(不适用于翻译)。
您可以看到示例here。