Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
Permalink
Browse files Browse the repository at this point in the history
[FIX] Only register translate route during development
  • Loading branch information
oliversalzburg committed Jan 7, 2016
1 parent 85ba51a commit 877720d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion i18n-node-routes.js
Expand Up @@ -49,7 +49,10 @@ var configure = function( app, configObject ) {

// Register routes
app.get( "/i18n/:locale", i18nRoutes.i18n );
app.get( "/i18n/:locale/:phrase", i18nRoutes.translate );

if( process.env.NODE_ENV === "development" ) {
app.get( "/i18n/:locale/:phrase", i18nRoutes.translate );
}
};

/**
Expand Down

0 comments on commit 877720d

Please sign in to comment.