diff --git a/manga_translator/server/ui.html b/manga_translator/server/ui.html
index 2e6d4fb6..88dcb9fc 100644
--- a/manga_translator/server/ui.html
+++ b/manga_translator/server/ui.html
@@ -292,7 +292,7 @@
Image/Manga Translator
formData.append('detector', this.textDetector)
formData.append('direction', this.renderTextDirection)
formData.append('translator', this.translator)
- formData.append('tgt_lang', this.targetLanguage)
+ formData.append('target_lang', this.targetLanguage)
const xhr = new XMLHttpRequest()
xhr.open('POST', `${BASE_URI}submit`, true)
diff --git a/manga_translator/server/web_main.py b/manga_translator/server/web_main.py
index 038fdfc8..02e04b7f 100644
--- a/manga_translator/server/web_main.py
+++ b/manga_translator/server/web_main.py
@@ -152,8 +152,8 @@ async def handle_post(request):
target_language = 'CHS'
detector = 'default'
direction = 'auto'
- if 'tgt_lang' in data:
- target_language = data['tgt_lang'].upper()
+ if 'target_lang' in data:
+ target_language = data['target_lang'].upper()
# TODO: move dicts to their own files to reduce load time
if target_language not in VALID_LANGUAGES:
target_language = 'CHS'