Microsoft Translator Widget - Force Destination La

2019-08-28 01:35发布

How do I force the Microsoft Translator widget to use a specific destination language without depending on the language sent by the browser?

http://www.microsofttranslator.com/widget/

1条回答
ゆ 、 Hurt°
2楼-- · 2019-08-28 02:24

I also had the same problem so thought I'd post how I fixed it.

I found that you can simply insert the language letter code into the widget's ajax URL. For example, search the widget code for this:

"/ajax/v2/widget.aspx?mode=auto&from=en&layout=ts"

Then you can just insert "&to=de" for example, if you want to translate to German. E.g.:

"/ajax/v2/widget.aspx?mode=auto&from=en&to=de&layout=ts"

As easy as that!

查看更多
登录 后发表回答