Only choose from languages available in argos

This commit is contained in:
Piero Toffanin 2021-01-15 12:12:00 -05:00
commit db01aeb404
3 changed files with 13 additions and 5 deletions

View file

@ -22,8 +22,7 @@ const res = await fetch("https://libretranslate.com/translate", {
source: "en",
target: "es"
}),
headers: {
"Content-Type": "application/json"}
headers: { "Content-Type": "application/json" }
});
console.log(await res.json());