Skip to content

Commit

Permalink
machinery: use JSON for LibreTranslate API
Browse files Browse the repository at this point in the history
Without that the batch translation does not work reliably.

Fixes WEBLATE-69S
Fixes WEBLATE-69V
  • Loading branch information
nijel committed Jan 22, 2024
1 parent 1c8f17f commit 48064f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/machinery/libretranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def download_multiple_translations(
response = self.request(
"post",
self.get_api_url("translate"),
data={
json={
"api_key": self.settings["key"],
"q": texts,
"source": source,
Expand Down

0 comments on commit 48064f3

Please sign in to comment.