lib/routes/index.js
function (configObject) {
    if (typeof configObject !== 'undefined') {
      configuration.directory = configObject.directory || configuration.directory;
      configuration.extension = configObject.extension || configuration.extension;
      configuration.objectNotation = configObject.objectNotation || configuration.objectNotation;
    }

    // Register routes
    var uri = vulpejs.app.root.context + '/i18n/:locale';
    vulpejs.express.app.get(uri, i18nRoutes.i18n);
    vulpejs.express.app.get(uri + '/:phrase', i18nRoutes.translate);
  }
function (configObject) {
    if (typeof configObject !== 'undefined') {
      configuration.directory = configObject.directory || configuration.directory;
      configuration.extension = configObject.extension || configuration.extension;
      configuration.objectNotation = configObject.objectNotation || configuration.objectNotation;
    }

    // Register routes
    var uri = vulpejs.app.root.context + '/i18n/:locale';
    vulpejs.express.app.get(uri, i18nRoutes.i18n);
    vulpejs.express.app.get(uri + '/:phrase', i18nRoutes.translate);
  }
function ( configObject ) { if ( typeof configObject !== 'undefined' ) { configuration . directory = configObject . directory || configuration . directory ; configuration . extension = configObject . extension || configuration . extension ; configuration . objectNotation = configObject . objectNotation || configuration . objectNotation ; } // Register routes var uri = vulpejs . app . root . context + '/i18n/:locale' ; vulpejs . express . app . get ( uri , i18nRoutes . i18n ) ; vulpejs . express . app . get ( uri + '/:phrase' , i18nRoutes . translate ) ; }
Configure the express routes through which translations are served.
@param app
@param {Object} [configObject]
Configure the express routes through which translations are served .