Word transform to click in html : <p>I have a span; I want to change the word of the text in span when I click this word to English likewise translator. </p>

<p>Example:
var from = ['Hallo','Welt'];
var to = ['Hello','World];</p>

<p>This paragraph is a value of span.... Hello World</p>
