juergenhoetzel / babel

An Emacs interface to different translation services available on the Internet
17 stars 8 forks source link

Support google translate v2 api #7

Closed erjoalgo closed 5 years ago

erjoalgo commented 5 years ago

Example usage:

ELISP> (setf babel-google-translate-api-key "fake-WiOtCVQP3rJZ44_kIOOM2Tw-EY5VMCTer0k")
ELISP> (babel-string "The quick brown fox jumps over the lazy dog." "en" "es" 'google)
"El zorro marrón rápido salta sobre el perro perezoso."
ELISP> 
juergenhoetzel commented 5 years ago

Thanks! :+1:

It would be nice to also check for errors (rate limit/invalid keys).