How to translate entire website with Google Translate

前端 未结 2 1742
走了就别回头了
走了就别回头了 2020-12-22 01:57

I am currently using the following to translate a web page:

http://translate.google.com/about/intl/en_ALL/tour.html#professional

The problem is, when I put t

相关标签:
2条回答
  • 2020-12-22 02:04

    The translation widget at the bottom of this page takes the approach of redirecting to google's page translation service which maintains the language but your page has to run inside a google container:

    http://www.toronto.ca/

    You might be able to listen to change events on the in-page translation widget and store the selected language in LocalStorage so you can automatically reselect it whenever a new page is loaded. However, this approach is pretty hacky since it could easily break whenever google alters the widget.

    0 讨论(0)
  • 2020-12-22 02:05

    It appears this problem only shows up when using Google Chrome. Other browsers work fine:

    http://groups.google.com/group/google-translate-general/browse_thread/thread/4b48a4f997762692

    0 讨论(0)
提交回复
热议问题