aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--translate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/translate.py b/translate.py
index 478d3d5..3464bb4 100644
--- a/translate.py
+++ b/translate.py
@@ -100,6 +100,8 @@ def add_translate_text_to_en(news_post: dict, overrides: list=[]) -> dict:
Takes a news post dict as input, then appends the translated EN headline and content
to the newspost and returns it
"""
+ if not translation_possible():
+ return news_post
translated_posts = []
translation_cache = _load_translation_cache()
for post in news_post:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage