From 016b157090e12d3fcf50148f0b73ccfcbfb1c47c Mon Sep 17 00:00:00 2001 From: Bodoral Date: Mon, 11 Nov 2024 13:54:46 +0300 Subject: [PATCH 1/2] feat: add arabic to DEEPL_LANGUAGE_TO_CODE extend the list of supported languages of Deepl as its support arabic --- deep_translator/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deep_translator/constants.py b/deep_translator/constants.py index 447c81f..22ea5fa 100644 --- a/deep_translator/constants.py +++ b/deep_translator/constants.py @@ -548,6 +548,7 @@ } DEEPL_LANGUAGE_TO_CODE = { + "Arabic": "ar", "bulgarian": "bg", "czech": "cs", "danish": "da", From ea451a3665efb805474c1c68eb0d0670235f458e Mon Sep 17 00:00:00 2001 From: Bodoral Date: Mon, 11 Nov 2024 13:57:40 +0300 Subject: [PATCH 2/2] style: 'Arabic' --> 'arabic' --- deep_translator/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deep_translator/constants.py b/deep_translator/constants.py index 22ea5fa..57ccc1c 100644 --- a/deep_translator/constants.py +++ b/deep_translator/constants.py @@ -548,7 +548,7 @@ } DEEPL_LANGUAGE_TO_CODE = { - "Arabic": "ar", + "arabic": "ar", "bulgarian": "bg", "czech": "cs", "danish": "da",