本文介绍了Google翻译查询参数是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所有Google翻译查询参数是什么意思?
What is the meaning of all Google Translate query params?
client:t
sl:auto
tl:sk
hl:sk //language of the interface (default:en, you can try xx-bork or xx-hacker)
dt:bd
dt:ex
dt:ld
dt:md
dt:qc
dt:rw
dt:rm
dt:ss
dt:t
dt:at
dt:sw
ie:UTF-8 // encoding of the input (default: utf-8)
oe:UTF-8 // encoding of the output, the results (default: utf-8)
otf:1
srcrom:1
ssel:3
tsel:0
q:translate // query, what you type in the search box
我已经发现了其中一些.
I already discovered some of them.
推荐答案
我正在开发一个在线翻译应用程序,这是我凭经验发现的:
I'm developing an online translator app, and this is what I found out empirically:
-
sl
-源语言代码(用于自动检测的auto
) -
tl
-翻译语言 -
q
-源文本/单词 -
ie
-输入编码(猜测) -
oe
-输出编码(猜测) -
dt
-可能会被多次包含,并指定在回复中返回的内容.
sl
- source language code (auto
for autodetection)tl
- translation languageq
- source text / wordie
- input encoding (a guess)oe
- output encoding (a guess)dt
- may be included more than once and specifies what to return in the reply.
以下是dt
的一些值.如果设置了该值,将返回以下数据:
Here are some values for dt
. If the value is set, the following data will be returned:
-
t
-翻译源文本 -
at
-替代翻译 -
rm
-源和翻译文本的转录/音译 -
bd
-词典,以防源文本是一个单词(您可以翻译文章,反向翻译等) -
md
-源文本的定义(如果是一个单词的话) -
ss
-源文本的同义词,如果是一个单词 -
ex
-示例 -
rw
-另请参见列表. -
dj
-具有名称的Json响应. (dj = 1)
t
- translation of source textat
- alternate translationsrm
- transcription / transliteration of source and translated textsbd
- dictionary, in case source text is one word (you get translations with articles, reverse translations, etc.)md
- definitions of source text, if it's one wordss
- synonyms of source text, if it's one wordex
- examplesrw
- See also list.dj
- Json response with names. (dj=1)
这篇关于Google翻译查询参数是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!