Auto Translator is a program which translates text to your own language automatically. It makes a text file to $HOME folder and it can speak translation if there has no empty lines.
If using bare script, packages yad and translate-shell must be installed.
Auto Translator deb-package and script
The script:
#!/bin/bash
##
# RJP 7.1.2025
# translate-shell package must be installed
# sudo apt-get update
# sudo apt-get install translate-shell
time=$(date "+%F-%H-%M-%S")
TEXT=$(yad --center --entry --width=700 --height=100 --text-align=center --title=$"Auto Translator" --text="WRITE OR PASTE TEXT INTO BOX" --entry --entry-label=BOX --entry-text="")
trans -s auto -t $(locale | grep ^LANG= | cut -d= -f2 | cut -d_ -f1) -p -b "$TEXT" > translation$time.txt
exit 0