title: internationalization in Node.js, Express, i18n
body: <p>I'm using Node.js together with Express framework and <a href="https://github.com/mashpie/i18n-node" rel="noreferrer">i18n module</a>. So I use </p>
  
  <pre><code>var i18n = require('i18n');
  app.configure(function() {
      [...]
      app.use(i18n.init);
      app.use(app.router);
  });
  </code></pre>
  
  <p>in my app settings. Everything works fine, but what I really need is to force i18n to use the langauage I want. The scenario is as follows: when user is not logged in, then i18n searches for the langauage in <code>accept-language</code> header and it is ok. But when user is logged in, then I want to hold chosen langauage somewhere in user settings, retrieve it and force i18n module to use this langauage. How to do this (assuming I already know how to save/retrieve the langauge into/from db)?</p>