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:
|
|
|
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
Translate to:
Chinese,
English,
Chinese Simplified,
Chinese Traditional,
Arabic,
French,
German,
Italian,
Japanese,
Korean,
Portuguese,
Russian,
Spanish,
DutchLoad 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:
Output text:
Detect language
Translate to:
Chinese,
English,
Chinese Simplified,
Chinese Traditional,
Arabic,
French,
German,
Italian,
Japanese,
Korean,
Portuguese,
Russian,
Spanish,
Dutch
Translate to:
Chinese,
English,
Chinese Simplified,
Chinese Traditional,
Arabic,
French,
German,
Italian,
Japanese,
Korean,
Portuguese,
Russian,
Spanish,
Dutch