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

Parse and dump methods #54

Closed MaffooBristol closed 8 years ago

MaffooBristol commented 9 years ago

I added two optional configuration methods: parse and dump, which will override JSON.parse and JSON.stringify, respectively. This allows for the ability to use YAML instead of JSON, for example.

I haven't written any tests, but can do if this feature is desired in master.

Thanks! :smile:

gjuchault commented 9 years ago

Interesting idea, does anyone has a use case of this ?

fundon commented 8 years ago

+1

gjuchault commented 8 years ago

Would you please add some tests so that I can merge ? @MaffooBristol

fundon commented 8 years ago

Maybe, I can submit a PR for this.

gjuchault commented 8 years ago

Thanks :)

gjuchault commented 8 years ago

See #80