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

Readfile on each request? #6

Closed mashpie closed 11 years ago

mashpie commented 11 years ago

Firstoff: Nice rewrite - your thoughts would have been helpful, when contributed, although your approach acts more like middleware than as independent module.

Looking at your code ist seams like each reqeuest leads to a full read of translation files in a blocking manner. I doupt, this is intendet?

sylvinus commented 11 years ago

Locale files are read at each requests only in devMode. In production they are only read once per process and then cached in memory.

maxwellium commented 11 years ago

close please -- open issues creep me out ;)