diff --git a/wagtail_localize/machine_translators/deepl.py b/wagtail_localize/machine_translators/deepl.py index 3de38fade..324be0c41 100644 --- a/wagtail_localize/machine_translators/deepl.py +++ b/wagtail_localize/machine_translators/deepl.py @@ -6,8 +6,8 @@ def language_code(code, is_target=False): - # DeepL supports targeting Brazillian Portuguese but doesn't have this for other languages - if is_target and code in ["pt-pt", "pt-br"]: + # DeepL supports targeting Brazillian Portuguese and requieres to specifically request American or British English. + if is_target and code in ["pt-pt", "pt-br", "en-us", "en-gb"]: return code return code.split("-")[0].upper()