title: Simple Dojo i18n implementation
body: <p>I just recently started learning dojo for personnal use and for experience. So far, I have been doing the tutorials on various dojo stuff (on their website and over the web) and I have been "struggling" with implementing a concrete infrastructure for more complex application (or good practice). I have find one interesting  project (<a href="https://github.com/csnover/dojo-boilerplate" rel="nofollow noreferrer">https://github.com/csnover/dojo-boilerplate</a>) and article (<a href="http://www.sitepen.com/blog/2011/05/04/what-is-the-best-way-to-start-a-dojo-project/" rel="nofollow noreferrer">http://www.sitepen.com/blog/2011/05/04/what-is-the-best-way-to-start-a-dojo-project/</a>). With that, I think my first problem is resolved.  Correct me, if I'm wrong.</p>
  
  <p>I feel like the tutorial on i18n is missing concrete implementation. For example, I would like  to add i18n on the dialog box from the boilerplate project. </p>
  
  <pre><code>define([ 'dojo/_base/declare', 'dijit/Dialog' ], function (declare, Dialog) {
      return declare(Dialog, {
          title: 'Hello World',
          content: 'Loaded successfully!'
      });
  });
  </code></pre>
  
  <p>Here, My project hierarchy is:</p>
  
  <p><img src="https://i.stack.imgur.com/G9UCL.png" alt="enter image description here"></p>
  
  <p>AS you can see, I create my own nls folder for my application and store for different (lang-locale) my "strings".  Now, how do I specify the locale content on title or content for my dialog code above. I have done recently i18n on ruby on rails (with the concept of MVC) and depending on my view I had to create for this specific view a file for localization (.yml). I know that RoR and Dojo are really not the same thing, but does a widget (could be compared to my view) and so each widget needs to have their own localization... I have come accross 2 tutorials, <a href="http://dojotoolkit.org/documentation/tutorials/1.6/i18n/" rel="nofollow noreferrer">first</a> and <a href="http://www.sitepen.com/blog/2011/08/25/how-do-i-create-a-dynamic-validating-internationalized-form-in-a-dialog/" rel="nofollow noreferrer">second</a>. Maybe, I'm reading it all wrong. </p>
  
  <p>I have something like this right now, but it doesn't work.. What am I missing?</p>
  
  <pre><code>dojo.requireLocalization("app", "dialog");
  
  define([ 'dojo/_base/declare', 'dijit/i18n' 'dijit/Dialog' ], function (declare, Dialog) {
      i18n: dojo.i18n.getLocalization("app", "dialog"),
      return declare(Dialog, {
          title: i18n.title,
          content: i18n.content
      });
  });
  </code></pre>
  
  <p>Thank you.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>define([ 'dojo/_base/declare', 'dojo/i18n!app/nls/labels', 'dijit/Dialog' ], function (declare, labels, Dialog) {
      return declare(Dialog, {
          title: labels.title,
          content: labels.content
      });
  });
  </code></pre>
  
  <p>I have no error now, but my labels.title is empty...?</p>
  
  <p><strong>EDIT(1): I forgot to add the root on the default nls folder.</strong> </p>