Using babel with Google translate

1 · Shane Mulligan · July 12, 2020, 4 p.m.
Create wrapper script around soimort/translate-shell translate-shell 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #!/bin/bash export TTY ( hs "$(basename "$0")" "$@" "#" "<==" "$(ps -o comm= $PPID)" 0</dev/null ) &>/dev/null # translate-shell -s en -t fr "$@" stdin_exists() { ! [ -t 0 ] && ! test "$(readlink /proc/$$/fd/0)" = /dev/null } if stdin_exists; then ins="$(cat)" set -- "$@" "$ins" fi $MYGIT/soimort/translate-shell/translate -brief "$@" Create the entries in org-template-gen 1 2 3 4 5 6...