Skip to content

Commit a4ed5f3

Browse files
pretty print
1 parent 53c8b86 commit a4ed5f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if [ -n "$KEY" ]; then
9393
arg: item["text"]
9494
}))
9595
96-
return JSON.stringify({ items: translations })
96+
return JSON.stringify({ items: translations }, null, 2)
9797
}' "$result"
9898
else
9999
result=$(curl -s 'https://www2.deepl.com/jsonrpc' \
@@ -109,7 +109,7 @@ else
109109
arg: item["postprocessed_sentence"]
110110
}))
111111
112-
return JSON.stringify({ items: translations })
112+
return JSON.stringify({ items: translations }, null, 2)
113113
}' "$result"
114114
fi
115115
fi

0 commit comments

Comments
 (0)