title: Creating multi language web app with i18n-2 in express
body: <p>I created an express(node.js) website with two language with <a href="https://github.com/jeresig/i18n-node-2" rel="nofollow">i18n-2 module</a> and now i have a problem. i was thinking that if i change a new language except default language, all links in my web site will have <code>/?lang</code> parameter automatically! i18n-2 will do it or myself have to code this feature?</p>
  
  <p>right now if i add <code>/?lang=de</code> by hand, it works but if i back to my websites root, it goes to defalult locale and that parameter removes from the url. </p>
  
  <p>this is my configuration:</p>
  
  <pre><code>I18n.expressBind(app, {
     locales: ['en', 'de'],
     defaultLocale: 'en',
     cookieName: 'locale',
     extension: ".json"
  });
  
  app.use(function(req, res, next) {
     req.i18n.setLocaleFromQuery();
     req.i18n.setLocaleFromCookie();
  
     next();
   });
  </code></pre>