node-i18n-mongo
Module for i18n support in node.js projects with mongodb
Install module:
npm install node-i18n-mongo
and then use it:
var i18n = ; i18n; // <-- init config, mongo connect and global function apply
Then you'me may use it in Fiber:
i18n;
For use it in ExpressJs:
var app = ;...i18n;
Then use it in ejs:
<%= __("Welcome to my World, %s", [name]) %>
or in jade:
h2= title p= __("Welcome to my World, %s", [name])