How to use a javascript strings object
<p>I'm having a problem utilizing my language files. </p>

<p>Currently, I have a language file where I have an object like</p>

<pre><code>var strings {
    title: "Title",
    subtitle: "Subtitle"
};
</code></pre>

<p>In my html currently, I'll have something like</p>

<pre><code>&lt;div id="title"&gt;Title&lt;/div&gt;
&lt;div id="subtitle"&gt;Subtitle&lt;/div&gt;
</code></pre>

<p>Now I want to include inside the div the value from a javascript object instead, so that I can use various language files. The relevant language file is chosen in the backend by a php script, and isn't the issue here.</p>

<p>Eg</p>

<pre><code>&lt;div id="title"&gt;strings.title&lt;/div&gt;
&lt;div id="subtitle"&gt;strings.subtitle&lt;/div&gt;
</code></pre>

<p>Is there an easy way to do this? I don't want to have to use php to create the necessary js file every single time, or use a jquery loop that populates every single div value on create, though right now it looks like that's what I'll have to do.'</p>

<p>Thanks</p>
