Moved translate functionality to translateText function.
onStateChange, translate text and display.
Translate to known language before sending to shared state.