Skip to content

Commit 4e41943

Browse files
committed
Fix keys for unit tests, convert camelCase in app.py
1 parent 41cf65a commit 4e41943

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/translator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ def translate(content: str) -> tuple[bool, str]:
5858

5959
def translate_content(content: str) -> dict:
6060
is_eng, translated = translate(content)
61-
return {"isEnglish": is_eng, "translatedContent": translated}
61+
return {
62+
"is_english": is_eng,
63+
"translated_content": translated
64+
}
65+

0 commit comments

Comments
 (0)