em-multilang

multilang middleware for ee-webservice

npm install em-multilang
2 downloads in the last week
8 downloads in the last month

em-multilang

multilang middleware for ee-webservice

var   Webservice     = require( "ee-webservice" )
    , Mutlilang     = require( "em-multilang" );



var service = new Webservice( {
    webserver: {
        http: {
              interface:     Webservice.Webserver.IF_ANY 
            , port:         12001
        }
    }
} );


service.use( new Mutlilang( {
      defaultLanguage:         "en"
    , languages:             [ "en", "fr", "it", "de" ]
    , externalRedirect:     false
} ) );


service.listen();
npm loves you