Google AJAX Language API

Google has announced their AJAX Language API on 20th March at thier AJAX Search API blog. This new API provides two functions for developers - language translation and detection. Language translation and detection support for 13 languages and 29 translation pairs.

To simply translate word in one language to the other:

google.language.translate('Gato', 'es', 'en', function(result) {
alert(result.translation);
});

To simply detect the language:
google.language.detect('Questa linea di rilevare che questa è la lingua.',
function(result) {
alert(result.language);
});

The language detector not only tell you the results, it also tells you how reliable the results are.
To get started with it,

0 comments: