From cb66f217ac4f82daf9ad4c4e6713fc9785307ee6 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 21 May 2025 15:34:54 +0300 Subject: [PATCH] Features: ; Fixes: 1) Correct DEEPL_API_URL to use the v2/translate endpoint; Extra: ; --- core/management/commands/translate_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/management/commands/translate_fields.py b/core/management/commands/translate_fields.py index 971901bb..b2444d52 100644 --- a/core/management/commands/translate_fields.py +++ b/core/management/commands/translate_fields.py @@ -5,7 +5,7 @@ import requests from django.core.management.base import BaseCommand, CommandError from django.db import transaction -DEEPL_API_URL = "https://api.deepl.com" +DEEPL_API_URL = "https://api.deepl.com/v2/translate" DEEPL_TARGET_LANGUAGES_MAPPING = { "en-gb": "EN-GB",