Add styling for translate component and improve text parsing.