Not sure if you want to use Homeyscript only, but with this flowcard below you can have the result returned:
Your post request should be something like this:
https://libretranslate.com/translate?q=Hello!&source=en&target=es&format=text&api_key=myapikey