Howto get started with the i18n module in an node.js cli, application or website.
npm install i18n --save
var express = require('express'),
i18n = require("i18n");
i18n.configure({
locales:['en', 'de'],
directory: __dirname + '/locales'
});
app.use(i18n.init());
app.get('/de', function(req, res){
var greeting = res.__('Hello');
});
{
"Hello": "Hallo"
}
go ahead to learn about the details.