E feletti verziók már nem támogatják a deep-translator.
Bemeneti szót átfordítja a kívánt nyelvre
flask
loguru
google-cloud-translate
google-auth
deep-translator
venv -et használtam (virtual environments)
venv = saját kornyezetet hoza létre ahova behuzza a szükséges modulokat/packegeket
venv -en fut a program
Itt lehet hozzáadni kivenni nyelveket és az alapértelmezett source/target nyelvet beállítani.
translate_text:
lefordítja a kapott szót és visszaadja a lefordított szót.
translate_text(inputtext,source_language, target_language)
return translated_word
home: ez fügvény kezeli a requestek (POST, GET).
Megkapja a lefordítandó szót és a source_language illetve a target_language -t.
Majd e paraméterek alapján lefordítja a szót amit visszaad a "home.html" templatenek.
Első kereső mezőbe irja be a fordítani kívánt szót. Majd válassza ki hogy milyen nyelvról fórdítsa milyenre.
(Automatikus = automatikusan felismeri a nyelvet).