Skip to content

Commit

Permalink
typo on deepl-api translator
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedie committed Mar 31, 2023
1 parent 7da4a8b commit 131c2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtranslator/translators/deepl_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, api_key):
self.translator = deepl.Translator(api_key)

def translate(self, text: str, source_language: str, destination_language: str):
result = translator.translate_text(
result = self.translator.translate_text(
text, source_lang=source_language, target_lang=destination_language
)
return result.text

0 comments on commit 131c2d1

Please sign in to comment.