Google Code Google Language API demo

This application showcases the Google Language API. The Google Language API allows you to translate blocks of text on your web page or web application using a couple of simple JavaScript API calls.

The API has been designed to be simple to use. View the source code of this page to see how easy it has been! For example, the API can detect what the input language is for you. Translation is simply a matter of saying "take this block of text (and I don't know what language it is in to be honest) and translate it to English (or another language of my choice)"

The Language API supports the following languages: Arabic, Chinese (Simplified and Traditional), Dutch, English, French, German, Greek, Italian, Japanese, Korean, Portuguese, Russian, and Spanish.

The Language API supports the following language translation pairs:
  • Arabic to English
  • Chinese to English
  • Chinese (Simplified to Traditional)
  • Chinese (Traditional to Simplified)
  • Dutch to English
  • English to Arabic
  • English to Chinese (Simplified)
  • English to Chinese (Traditional)
  • English to Dutch
  • English to French
  • English to German
  • English to Greek
  • English to Japanese
  • English to Korean
  • English to Portuguese
  • English to Italian
  • English to Russian
  • English to Spanish
  • French to English
  • French to German
  • German to English
  • German to French
  • Greek to English
  • Italian to English
  • Japanese to English
  • Korean to English
  • Portuguese to English
  • Russian to English
  • Spanish to English

Use Case 1: Translate user-generated content

Translate user-generated content on the fly. User generated content is notoriously difficult to translate for two reasons. First, depending on the popularity of your site, hundreds of lines of content may be generated every minute. Second, sourcing a translator to translate this content into multiple languages in a timely manner is a non-trivial excercise.
Left by Bob at 1-10-2008 12:43
Left by Susan at 2-10-2008 13:43
Left by Craig at 31-11-2008 9:41
Left by Craig at 31-11-2008 9:42
Click on a language below to translate the guest comments on the left to a language of your choice.

Translate to: Chinese, English, Chinese Simplified, Chinese Traditional, Arabic, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Dutch

Load original text

Use Case 2: Translate user input

Translate user input on the fly. For example, allow your visitor to input an inquiry in their native language. Automatically translate their input into a language of your choice so that you can respond easily.
Input text:

Output text:
These use cases demonstrate how easy it is to use the Google Language API to translate blocks of text on the fly. Now it's your turn to put it to the test :) Translate user-generated content on the fly, answer customer inquiries on the fly, reduce your reliance on translators ... the possibilities are endless!
[This application has been tested on Firefox 2.0.0.x]