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

New strings not saved #82

Closed abdelilah closed 8 years ago

abdelilah commented 8 years ago

Hello,

As in the title, new strings are not saved to locales file in version 0.6.0

I added a quick fix in after line 329 like this:

if (!this.locales[locale][singular]) { this.locales[locale][singular] = singular; // the fix if (this.devMode) { this.writeFile(locale); } }

Hope this will be fixed soon

gjuchault commented 8 years ago

Could you make a PR for this ? And add some tests with your use case

gjuchault commented 8 years ago

Closed by #83