title: Multi language page with Javascript or jquery
body: <p>Currently I am working on web app that will support several languages. Therefore I prepared table in my database with translations. However, I am not sure how to populate web app with translations. The easiest way, in my opinion, is to put reference to appropriate translation in each element of the page. This would work great in PHP I don't know how to make it work in js or JQuery.</p>
  
  <p>What I would like to have is the reference to array in divs like this:</p>
  
  <pre><code>    &lt;div&gt; {translation_array['login']} &lt;/div&gt;
  </code></pre>
  
  <p>So that the div would "take" value from translation_array, but I lack the knowledge to do it. Is it possible to make it work this way?</p>
  
  <p>If not, I would appreciate advices on how to make multilanguage web in js.</p>
  
  <p>thanks</p>