jeresig / i18n-node-2

Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates.
MIT License
507 stars 79 forks source link

different of 'production' NODE_ENV #86

Closed raykovskyy closed 8 years ago

raykovskyy commented 8 years ago

We had some troubles after deploying our code on one of our production servers. The reason is trivial - different from 'production' NODE_ENV variable. I think it would be a great to have the way to set proper environment variable in options

gjuchault commented 8 years ago

Actually you could just have put devMode: false as the line https://github.com/jeresig/i18n-node-2/blob/master/i18n.js#L44 overrides https://github.com/jeresig/i18n-node-2/blob/master/i18n.js#L40

raykovskyy commented 8 years ago

shame on me) yep i should do that. thanks.