Skip to content

Commit

Permalink
Merge pull request #84 from ZhymabekRoman/patch-1
Browse files Browse the repository at this point in the history
fix: delete duplicates from language list of DeepL
  • Loading branch information
Animenosekai authored Aug 12, 2023
2 parents 11650ca + 82291eb commit cbf6367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translatepy/translators/deepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def send_jsonrpc(self, method, params):

class DeeplTranslate(BaseTranslator):

_supported_languages = {'AUTO', 'BG', 'ZH', 'CS', 'DA', 'NL', 'NL', 'EN', 'ET', 'FI', 'FR', 'DE', 'EL', 'HU', 'IT', 'JA', 'LV', 'LT', 'PL', 'PT', 'RO', 'RO', 'RO', 'RU', 'SK', 'SL', 'ES', 'ES', 'SV'}
_supported_languages = {'AUTO', 'BG', 'ZH', 'CS', 'DA', 'NL', 'EN', 'ET', 'FI', 'FR', 'DE', 'EL', 'HU', 'IT', 'JA', 'LV', 'LT', 'PL', 'PT', 'RO', 'RU', 'SK', 'SL', 'ES', 'SV', 'TR', 'ID', 'NB', 'KO', 'UK'}

def __init__(self, request: Request = Request(), preferred_langs: List = ["EN", "RU"]) -> None:
self.session = request
Expand Down

0 comments on commit cbf6367

Please sign in to comment.