然后利用 api 提供的方法 google.language.translate 即可完成翻译工作。这里有个示例文档,API 的说明请看这里。 使用开发者指南页面的方法可以很方便的获取到数据,但是数据是一次性的,好在Google也提供其他方式返回数据,如JSON。 Google translation api 必须使用GET方式获取数据,返回的数据格式为JSON,结构如下: 1{ 2"...
翻译登录翻译类型 文字 图片 文档 网站 文本翻译 检测语言 英语 中文(简体) 德语 swap_horiz 中文(简体) 英语 日语 原文 0 / 5,000 翻译结果 翻译 发送反馈
project=288578xxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.', 'errors': [{'message': 'Cloud Translation API has not been used in project 288578xxxxxx before or it is disabled. Enable it by visiting https:...
翻译API 信息 Google 翻译 API 的请求地址为 https://translate.googleapis.com,该接口通过 GET 请求方式传递参数。具体参数如下: client:固定值 gtx dt:固定值 t sl:源语言代码,可以设为 auto 将自动检测源语言 tl:目标语言代码 q:URL 编码后的待翻译文字 组织一个简单请求: // API 请求示例https://transla...
利用开放的Google Translation API快速完成。 自动监视剪贴板,复制即译 软件已经悄悄地翻译出您想要的结果了,非常方便! 自动缓存3个翻译记录,随意返查 自动缓存3个最近的翻译记录,可以随意返回查看,包括文字和语音。 小巧、绿色、免安装在线翻译 只有一个可执行文件,不附带任何文件,真正小巧、绿色、免安装、无插件。
5importcom.google.cloud.translate.Translation;67publicclassQuickstartSample {8publicstaticvoidmain(String... args)throwsException {9//Instantiates a client10Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service();1112//The text to translate13String text = "Hello,...
$translate = new TranslateClient([ 'key' => '这里写谷歌后台的APIKEY' ]); $result = $translate->translate('Get the languages supported for translation specifically for your target language.', [ 'source' => 'en',//默认EN,不设置自动检测原始语言 'target' => 'zh-CN' ]); echo $result...
Sometimes, the API will not use the auto corrected text in the translation: translate('I speak Japanese',{from:'en',to:'ja'}).then(res=>{console.log(res);console.log(res.text);//=> 私は日本語を話しますconsole.log(res.from.text.autoCorrected);//=> falseconsole.log(res.from.text...
可以看下百度的API商城,里面有百度翻译的API,也有第三方提供的API。链接是https://apis.baidu.com 其...
立即翻译任何文档格式为任意语言,并保持排版不变。免费。 保持原文档排版 109种支持语言,且不断增加 无需安装 无需注册 现在翻译 20大翻译快捷键 将英语翻译成西班牙语 将英语翻译成印尼语 将英语翻译成阿拉伯语 将英语翻译成法语 将英语翻译成俄语 将英语翻译成葡萄牙语 ...