About the TranslateThis Button

The TranslateThis Button is a JavaScript translation widget developed by Translate Company. The script leverages Google Translate and is very lightweight, running well on any website.

The widget provides an accessible JavaScript interface for translating up to 60+ languages. The user interface has been carefully designed to work well in all environments on both PCs and mobile devices.

Detailed Info for Nerds

The TranslateThis Button has a number of technical advantages for developers.

First the script is very lightweight, weighing in at just over 20 Kb (under 30kb including all the imagery). And since it doesn't depend on any heavy JavaScript libraries, TranslateThis loads quickly and can be easily plugged into any site.

The script has undergone cross-browser testing, and works in IE 6-8, Firefox 2-3.6, Safari 3-5, Chrome, and Opera 9+. Furthermore it is designed to degrade gracefully into earlier versions of these browsers.

Additionally, attention has been paid to JavaScript optimization at every point. The codebase is optimized, object oriented and compressed.

The translation is executed asynchronously and have been consolidated as much as possible. Finally, HTTP requests have been limited as much as possible for the widget assets (the flag imagery is in an image sprite and the main button uses a data URI in most browsers).

Advanced Options

The TranslateThis Button provides a number of customizable options

  • Tracking with Google Analytics
  • The ability to restrict the translation by ID so the widget only translates a portion of the page
  • A callback function for when the translation completes
  • Control over which languages appear in the flag list, drop down and overall listing
  • Various styling options including the ability to use your own flag imagery
  • Change the text of the widget to suit your site's language
  • And more... Read the docs for more info