mirror of
https://github.com/adulau/dotfiles.git
synced 2024-12-22 16:56:07 +00:00
9 lines
267 B
Text
9 lines
267 B
Text
|
#!/bin/sh
|
||
|
#
|
||
|
# translate using google Translate services
|
||
|
#
|
||
|
# Usage:
|
||
|
# translate "la vie des chicons" fr en
|
||
|
|
||
|
wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=$2|${3:-en}" | sed 's/.*"translatedText":"\([^"]*\)".*}/\1\n/';
|