Browse Source

set locale

Sven SAULEAU 9 years ago
parent
commit
734a04245f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app.js

+ 2 - 1
app.js

@@ -12,12 +12,13 @@ var routes = require('./routes/index');
 var app = express();
 
 i18n.configure({
-    locale: config.locale,
     defaultLocale: "en",
     directory: __dirname + '/locales',
     autoReload: true
 });
 
+i18n.setLocale(config.locale);
+
 // default: using 'accept-language' header to guess language settings
 app.use(i18n.init);