title: Use of dust.js parameters to set locale for strings in Json
body: <p>I have the following json structure:</p>
  
  <pre><code>{
   locale : "en",
   text {
       "en": "Hello",
       "fr": "Bonjour"
   }
  }
  </code></pre>
  
  <p>I want to pick up the locale in my template and use it when accessing the text.  I thought something like this might work:</p>
  
  <pre><code>{#text foo=locale}
      {text.foo}
  {/text}
  </code></pre>
  
  <p>But I get nothing.</p>
  
  <p>Any ideas?
  Thanks.</p>