This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require modules | |
var http = require('http'), | |
i18n = require('i18n'), | |
app; | |
// minimal config | |
i18n.configure({ | |
locales: ['en', 'de'], | |
directory: __dirname + '/locales' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require modules | |
var express = require('express'), | |
i18n = require('i18n'), | |
hbs = require('hbs'), | |
app = module.exports = express(); | |
i18n.configure({ | |
locales: ['en', 'fr'], | |
cookie: 'locale', | |
directory: "" + __dirname + "/locales" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require modules | |
var express = require('express'), | |
i18n = require('../../i18n'), | |
url = require('url'), | |
cons = require('consolidate'), | |
app = module.exports = express(); | |
// minimal config | |
i18n.configure({ | |
locales: ['en', 'de'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require modules | |
var restify = require('restify'), | |
i18n = require('i18n'), | |
app; | |
// minimal config | |
i18n.configure({ | |
locales: ['en', 'de'], | |
directory: __dirname + '/locales' | |
}); |