* i created function `translate` which contains `if [[ $(grep text $source) ]] ; then`, but main code contains many instances of the same. * recommend replacing those with the function call.
translatewhich containsif [[ $(grep text $source) ]] ; then, but main code contains many instances of the same.