With this keyboard for Android you can have text translated into another language as you type..
If you are writing to friends from abroad or want to send one in a different language for any other reason, Google's GBoard will help. While you are still typing a text in German, it will be translated into the language of your choice.