I want to create a keyboard that can be downloaded on the Google play store that can automatically translate the language highlighted to a desired language. For example you highlight some text in Whatsapp and instead of the keyboard keys, the translated version of the text will appear (if its too long for the screen then a scrolling function will also be available).
The keyboard should at least have the same features as the Google keyboard
Pictures below will give a visualisation on what I am trying to achieve. Please let me know if you don't understand it.