Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何强制 Microsoft 翻译小部件使用特定的目标语言,而不依赖于浏览器发送的语言?
http://www.microsofttranslator.com/widget/
我也有同样的问题,所以我想我会发布我如何解决它。
我发现您可以简单地将语言字母代码插入到小部件的 ajax URL 中。例如,搜索小部件代码:
"/ajax/v2/widget.aspx?mode=auto&from=en&layout=ts"
例如,如果您想翻译成德语,则可以插入“&to=de”。例如:
"/ajax/v2/widget.aspx?mode=auto&from=en&to=de&layout=ts"
就这么简单!