~metalune/simplytranslate_web

8d241b86c9969e4e9b87259cb3c11e873a60063e — metalune 3 months ago de4d8b9
Add support for google argument style
1 files changed, 5 insertions(+), 0 deletions(-)

M main.py
M main.py => main.py +5 -0
@@ 70,6 70,11 @@ async def index():
                to_language=to_lang_code(to_lang, supported_languages),
                from_language=to_lang_code(from_lang, supported_languages),
            )
    else:
        # support google format
        inp = request.args.get("text", "")
        from_l = request.args.get("sl", "auto")
        to_l = request.args.get("tl", "en")

    use_text_fields = request.args.get("typingiscool") == "True"