Finish translation implementation

This commit is contained in:
Dylan
2026-04-18 23:50:09 +01:00
parent 1a6f424e69
commit 7c7a6e6a59
6 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ def getTweetData(twitter_url,include_txt="false",include_rtf="false",tlLanguage=
if tweetData["translation"] is None and tlLanguage is not None and tlLanguage != tweetData["lang"]:
# translation probably failed on twitter's end
pass # TODO: implement DeepL api
tweetData["translation"] = translation.getDeeplTranslation(tweetData["text"],tlLanguage)
if tweetData["translation"] is not None and tlLanguage is None:
tweetData["translation"] = None # didn't ask for TL