public
Description: Accessing Google AJAX APIs from server code
Homepage: http://ianloic.com/
Clone URL: git://github.com/ianloic/google-ajax-server.git
Ian McKellar (author)
Thu Mar 20 14:22:48 -0700 2008
google-ajax-server / language-api.js
100644 9 lines (6 sloc) 0.205 kb
1
2
3
4
5
6
7
8
9
load('ajax-environment.js');
 
load('http://www.google.com/jsapi');
google.load('language', '1');
 
google.language.translate("Hello world", "en", "es", function(result) {
    print(result.translation);
});