def auto_from_file(filename, destLang, serverEndpoint=ServerEndpoint): jsonOutput = doTranslate1(destLang, filename, serverEndpoint) return jsonOutput[1]
def from_file(filename, srcLang, destLang, serverEndpoint=ServerEndpoint): jsonOutput = doTranslate1(srcLang + ":" + destLang, filename, serverEndpoint) return jsonOutput[1]
def from_file(filename, srcLang, destLang, serverEndpoint=ServerEndpoint): jsonOutput = doTranslate1(srcLang + ':' + destLang, filename, serverEndpoint) return jsonOutput[1]