title: Replacing variables in i18next
body: <p>I have implemented i18next, and after getting help on a couple of issues all works fine.
  I still have issues understanding parts of the documentation on the support site.</p>
  
  <p>I'm trying to replicate this part (found <a href="http://i18next.com/pages/doc_features.html" rel="noreferrer">here</a>):</p>
  
  <pre><code>// given resources
  {           
    'en-US': { translation: {  key: '__myVar__ are important' } }
  };
  
  i18n.t("key", { myVar: "variables" }); // -&gt; variables are important
  </code></pre>
  
  <p>On my side of things, this is the JSON file:</p>
  
  <pre><code>{
      "app": {"name": "mytranslation" },
      "back": "Back",
      "cancel": "Cancel",
      "closemenu": "Close Menu",
      "closeoptions": "Close options",
      "currency": "Currency symbol is __currencysymbol__",
      "date": "Date",
      "description": "Description"
  }
  </code></pre>
  
  <p>And the HTML:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div data-i18n="currency"&gt;&lt;/div&gt;
      &lt;script src="javascript/i18next-1.7.3.min.js"&gt;&lt;/script&gt;
      &lt;script language="javascript" type="text/javascript"&gt;
          i18n.init({ preload: ['en', 'fr', 'ht', 'es', 'de', 'zh', 'vi', 'pt', 'it', 'th', 'dev'] });
          i18n.init({ detectLngQS: 'lang' });
          i18n.init(function(t) { 
              $("body").i18n();
              var appName = t("app.name");
          });
          i18n.t("currency", { currencysymbol: "$" }); //where do I place this code???
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Note: jQuery 2.1.1 and jQuery Mobile 1.4.2 are loaded in the header.</p>
  
  <p>I'm sure I'm not placing the various parts where they are supposed to go, as it is not working (not inserting the variable "currencysymbol"). The rest of the code works fine, as I get all the translated text.</p>
  
  <p>What I'd really like to achieve is to be able to create variables that would be called as part of the translations (currency symbol, company name, company address, etc... - for affiliates purposes), and be able to replace those values as they are repeated in the translated texts.</p>
  
  <p>I would like to have those variables in one place, so they are easy to adjust, and they will not be subject to the context of language changes.</p>